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? Sign in to your account
Submitted by: @cincuranet
The FbCommand.ExecuteNonQuery should return -1 for everything except insert, update, delete, according to "spec".
https://docs.microsoft.com/en-us/dotnet/api/system.data.common.dbcommand.executenonquery
"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."
Commits: da206eb
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.
Hi!
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.
cincuranet
No branches or pull requests
Submitted by: @cincuranet
The FbCommand.ExecuteNonQuery should return -1 for everything except insert, update, delete, according to "spec".
https://docs.microsoft.com/en-us/dotnet/api/system.data.common.dbcommand.executenonquery
"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."
Commits: da206eb
The text was updated successfully, but these errors were encountered: