diff --git a/api/src/Db/Schema.php b/api/src/Db/Schema.php index ff730a7f77..356ebbdb90 100644 --- a/api/src/Db/Schema.php +++ b/api/src/Db/Schema.php @@ -948,7 +948,12 @@ class Schema } else { - $retval = $this->dict->ExecuteSQLArray($aSql); + try { + $retval = $this->dict->ExecuteSQLArray($aSql); + } + catch (\mysqli_sql_exception $e) { + $retval = 1; + } } if ($retval < 2 || $this->debug >= $debug_level || $this->debug > 3) { @@ -1532,4 +1537,4 @@ class Schema $this->$kind = $tabledef[$kind]; } } -} +} \ No newline at end of file