Query affected 2 rows while 1 expected! This might mean that your query lacks a proper WHERE statement or a TRIGGER changes number of affected rows. In the latter case, you may try adding "SET NOCOUNT ON" to your trigger code #6342
minhhungit
started this conversation in
Tricks and Samples
Replies: 1 comment 1 reply
-
The exception says |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My table is using a sql trigger to update a computed column, and when I update the update on entity dialog, it threw this error
After checking serenity source code I see that it is because serenity has mechanism to verify saving by using
ExpectedRows
at hereI am not sure what is correct way to overwrite ExpectedRows, so I tried to modify
ExecuteSave
like bellow, this might help some one.The idea is copy code from serenity source code and change ExpectedRows. Make sure that you copy code from corresponding serenity version you are using for your project
Here is the code for serenity .net framework, version 3.13.7.0
i want to share my experience but If someone knows a way to custom ExpectedRows without changing code like above please share me, thank you
Beta Was this translation helpful? Give feedback.
All reactions