We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2af77b commit 50c7428Copy full SHA for 50c7428
src/Databases/MySQL.php
@@ -265,6 +265,9 @@ public function transactionRollback() {
265
public function dryRun($callback = null) {
266
$result = null;
267
$exception = null;
268
+ if($this->pdo->inTransaction()) {
269
+ throw new \Exception('Connection is already in a transaction. Dry-run not possible.');
270
+ }
271
$this->transactionStart();
272
try {
273
$result = call_user_func($callback, $this);
0 commit comments