Skip to content
New issue

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

generated DBConcurrencyException should return a row with error [DNET125] #136

Closed
firebird-automations opened this issue Nov 2, 2007 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: Pavel (chpasha)

Relate to DNET126

when generating DBConcurrencyException in Update method of FbDataAdapter you should supply the row, that caused error for client software that handles it

int rowsAffected = command.ExecuteNonQuery();
if (rowsAffected == 0)
{
throw new DBConcurrencyException("An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in zero records affected.");
}

i propose writing

throw new DBConcurrencyException("An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in zero records affected.", null, new DataRow[]{row});

Commits: 708cc74

@firebird-automations
Copy link
Author

Modified by: @carlosga

Fix Version: 2.5.0 [ 10170 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

assignee: Carlos Guzman Alvarez [ carlosga_fb ] => Jiri Cincura [ cincura_net ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Yes, the sql client does this.

Fixed in rev.423.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue relate to DNET126 [ DNET126 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

security: Developers [ 10012 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants