My Oracle Support Banner

ODBC: Unable To Get Row Count[SQLROWCOUNT] For Merge Statements Using SQL API Function (Doc ID 2751969.1)

Last updated on FEBRUARY 21, 2021

Applies to:

Oracle ODBC Driver - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Using Oracle ODBC application, While performing insert/update/delete operations  the standard SQL API function SQLRowCount will  returns  number of rows modified.
But while performing MERGE statements , it does not return the correct number of rows modified and  it always return -1.

Database Script :

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.