mysql: working around implicit transaction commits? -


i wrote tool our project, applying sql update files committed, db. whenever run (on deployment), calculates list of update files need applied, , applies them iniside transaction.

recently became aware of issue: mysql implicitly commit transaction, whenever ddl statements (like create) executed. http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html

this issue me, sql update file contains several statements, understand result in committing transaction in middle of executing update file. problem, because whenever subsequent update fail (which happens time time) want able rollback transaction, or @ least track update files applied (completely) , not.

is there way around implicit transactions issue? i.e. there way rollback sequence of ddl statements whenever 1 of them fail?

any other suggestions how can handle issue?

thanks

gidi

no. mysql not support transactional ddl. either need separate ddl statements dml statements, or perhaps try use migration tool ruckusing


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -