-
Notifications
You must be signed in to change notification settings - Fork 15
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
PostgreSQL - batch update failed #216
Comments
I will look at it, but I need some more context. How the update operation was constructed? This DELETE with Any, it looks like it is made from Linq and then scheduled for execution on SaveChanges? Pls provide some pseudo code or general sequence what was going on |
VITA_UPDATE Script.pptx The Pseudo code looks like this:
.... Place, transition contains one identifier and edges two, the script is generated correctly from my point of view but only the semicolon is missing. |
I ran the 'TestMics_DeleteMany' test and the command text is without ;
In this case, missing semicolon doesn't matter. |
wow, fancy chemistry! ok, got it, will look at it over weekend and push the fix |
pushed fix, v 3.5.1, should be working now |
The problem persists even after updating VITA to 3.5.1. version:
|
sorry, looking at it... |
fixed, pushed 3.5.2, try it |
It works. Thank you very much for the fix. |
Vita generated this script that failed with the message:
42601: syntax error at or near "DELETE"
POSITION: 56
The generated script:
UPDATE pathway."Pathway"
SET "OrderId" = CAST(0 AS smallint), "ModifyDate" = '2023-02-02T14:29:25.20403', "Timestamp" = '2023-02-02T15:19:51.23444'
WHERE "Id" = 1;
DELETE FROM pathway."Edge"
WHERE "Id" = ANY(@p0)
DELETE FROM pathway."Place"
WHERE "Id" = 3;
DELETE FROM pathway."Transition"
WHERE "Id" = 2;
I think that the problem is in the line: WHERE "Id" = ANY(@p0) - the semicolon is missing.
Parameter @p0 is an integer array parameter containing two integers.
The script is logically correct. Thank you, VITA.
Is there any easy workaround?
Thank you in advance
The text was updated successfully, but these errors were encountered: