mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix failing tests in postgres.
This commit is contained in:
parent
b75a6b440a
commit
b2f62f46c5
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ class DboSource extends DataSource {
|
|||
*/
|
||||
protected function _execute($sql, $params = array(), $prepareOptions = array()) {
|
||||
$sql = trim($sql);
|
||||
if (preg_match('/^(?:CREATE|ALTER|DROP)\s+TABLE/i', $sql)) {
|
||||
if (preg_match('/^(?:CREATE|ALTER|DROP)\s+(?:TABLE|INDEX)/i', $sql)) {
|
||||
$statements = array_filter(explode(';', $sql));
|
||||
if (count($statements) > 1) {
|
||||
$result = array_map(array($this, '_execute'), $statements);
|
||||
|
|
Loading…
Reference in a new issue