deb-migrate/migrate/versioning
Ihar Hrachyshka 938757e7aa Ignore transaction management statements in SQL scripts
Now that we don't run SQL script with a single .execute() call,
transaction management statements (BEGIN, COMMIT, END) fail with
operational error. Ignore them if occurred in a script.

All in all, transactions are managed by SQLAlchemy-migrate itself, so
there is no reason for the calling code to pass those statements in a
SQL script. Warn user about the statements that are ignored.

The ideal response to such a warning from library users is removing
those redundant transaction management statements from their scripts.

Note: ROLLBACK is not ignored even though it's one of transaction
management statements because its usage in migration scripts is insane
anyway, and we're better fail on it and not (almost) silently ignore it.

Change-Id: Ie4179c0e9341d42656d66821aaac23f8dcd33927
Closes-bug: 1368391
2015-01-09 14:32:27 -08:00
..
script Ignore transaction management statements in SQL scripts 2015-01-09 14:32:27 -08:00
templates Port to Python3 2014-04-09 17:32:52 +02:00
util Port to Python3 2014-04-09 17:32:52 +02:00
__init__.py convert svn to hg 2009-06-30 22:50:18 +02:00
api.py fixed issue 129 2011-10-02 20:13:10 +08:00
cfgparse.py Port to Python3 2014-04-09 17:32:52 +02:00
config.py remove versioning.base in favor of versioning.config 2009-08-07 16:10:15 +02:00
genmodel.py Port to Python3 2014-04-09 17:32:52 +02:00
migrate_repository.py change print statements to log.info 2010-06-09 17:16:01 +01:00
pathed.py move all exception classes to migrate.exceptions 2010-09-07 02:25:29 +02:00
repository.py Port to Python3 2014-04-09 17:32:52 +02:00
schema.py Port to Python3 2014-04-09 17:32:52 +02:00
schemadiff.py Port to Python3 2014-04-09 17:32:52 +02:00
shell.py Port to Python3 2014-04-09 17:32:52 +02:00
template.py Eradicate trailing whitespace 2014-02-26 15:04:54 -05:00
version.py Port to Python3 2014-04-09 17:32:52 +02:00