diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-10-23 16:34:01 +0200 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-10-23 20:47:56 +0200 |
commit | df53d409226dd9a0ccbeac93f017a4363a1c98cf (patch) | |
tree | 80ea434d2c94dea637068b89abc8df9e5da462ef /phpBB/phpbb/install/module | |
parent | d34d6378bc7db03daa763aa54739b69b07610702 (diff) | |
download | forums-df53d409226dd9a0ccbeac93f017a4363a1c98cf.tar forums-df53d409226dd9a0ccbeac93f017a4363a1c98cf.tar.gz forums-df53d409226dd9a0ccbeac93f017a4363a1c98cf.tar.bz2 forums-df53d409226dd9a0ccbeac93f017a4363a1c98cf.tar.xz forums-df53d409226dd9a0ccbeac93f017a4363a1c98cf.zip |
[ticket/14044] Automatically trigger rollback on insert in transaction
This will cause the sqlite3 driver to automatically rollback transactions
if an insert fails during a transaction. Other dbms trigger a rollback
inside the sql_error() function with a rollback command. However,
this manual rollback command might fail on sqlite3 due to ongoing queries.
With this change, sqlite3 itself will abort any ongoing queries and
initiate the rollback automatically. Since manually triggered rollbacks
will fail after the rollback was started automatically, we catch
exceptions output by the exec() command during rollback and any exception
that might be thrown by fetchArray() due to aborted queries.
PHPBB3-14044
Diffstat (limited to 'phpBB/phpbb/install/module')
0 files changed, 0 insertions, 0 deletions