actions icon indicating copy to clipboard operation
actions copied to clipboard

Fix DBError in execute_update_returning method

Open joshyorko opened this issue 9 months ago • 0 comments

Address DBError in execute_update_returning method by managing transactions correctly.

  • Transaction Management in execute_update_returning:

    • Add a transaction initiation using BEGIN before executing the UPDATE statement.
    • Add a COMMIT statement after executing the SQL statements.
    • Add a ROLLBACK statement to handle errors.
  • Transaction Management in _create_run:

    • Add a check using in_transaction() to ensure a transaction is active before calling execute_update_returning.
    • Add a transaction initiation using BEGIN before calling execute_update_returning.
    • Add a COMMIT statement after calling execute_update_returning.
    • Add a ROLLBACK statement to handle errors.

joshyorko avatar Mar 26 '25 22:03 joshyorko