Using transaction now
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2011 15:03:37 +0000 (16:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2011 15:03:37 +0000 (16:03 +0100)
commitdcd38d37ec71e3253cf5c90947bb870f64be0104
treebaecedad37e21309c325d0b440899f8cb20e5196
parentc35d8714daa3d2cd04732520793bb3d68d671dfc
Using transaction now

Changes to PreparedStatement: execute() will now automatically wrap itself in a transaction before committing changes, including an automatic rollback on failure.

If you want to send multiple queries at once, you should wrap the whole loop in a transaction and use executeUnbuffered() instead.

You SHOULD NOT use executeUnbuffered() without a transaction.
wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php