We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Submitted by: @cincuranet
The FbCommand.ExecuteNonQuery should return -1 for everything except insert, update, delete, according to "spec".
"For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. For all other types of statements, the return value is -1."
The text was updated successfully, but these errors were encountered:
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: vNext [ 10915 ]
Sorry, something went wrong.
I am executing an INSERT .... RETURNING statement and it is returning -1. Shouldn't it be the number of rows affected?
@viegasfh The "problem" is, that INSERT ... RETURNING Firebird reports as "stored procedure" command type.
INSERT ... RETURNING
OK, thanks! I have added the condition to test it against -1.
No branches or pull requests