Skip to content

Commit

Permalink
Re-add in SAVEPOINT|ROLLBACK into isManip function to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Dec 26, 2019
1 parent b7ebb28 commit 24243e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ public static function isManip($query)
. 'CREATE|DROP|'
. 'LOAD DATA|SELECT .* INTO .* FROM|COPY|'
. 'ALTER|GRANT|REVOKE|'
// CRM_Core_Transaction Tests fail without the following line.
. 'SAVEPOINT|ROLLBACK|'
. 'LOCK|UNLOCK';
// First strip any leading comments
$queryString = (substr($query, 0, 2) === '/*') ? substr($query, strpos($query, '*/') + 2) : $query;
Expand Down

0 comments on commit 24243e1

Please sign in to comment.