You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Problem
Batch insert in Oracle transaction, and get the automatically generated ID when inserting. If PDOException occurs, the normal SQL before the abnormal SQL will still be commit transaction, because the third parameter - primary key, such as ID, is passed in the insert function. Because in the final exec function, if the third parameter is a callback, it will be automatically submitted.
Code Snippet
The detail code you are using that causes the problem:
note:the field ID is primary key,generated by oracle
Information
Describe the Problem
Batch insert in Oracle transaction, and get the automatically generated ID when inserting. If PDOException occurs, the normal SQL before the abnormal SQL will still be commit transaction, because the third parameter - primary key, such as ID, is passed in the insert function. Because in the final exec function, if the third parameter is a callback, it will be automatically submitted.
Code Snippet
The detail code you are using that causes the problem:
note:the field ID is primary key,generated by oracle
the exec code in Medoo
Expected Behavior
the foo record will not commit;
Actual Behavior
the foo record will commit;
how to fix
The text was updated successfully, but these errors were encountered: