fix PHP 8.1 makes all schema errors fatal, change that back to previous behavior, to ease updates

This commit is contained in:
ralf 2022-09-14 14:44:45 +02:00
parent 676e855ad5
commit 1989e1a949

View File

@ -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];
}
}
}
}