diff --git a/MDB2/Driver/mysql.php b/MDB2/Driver/mysql.php index 8959c437..68494898 100644 --- a/MDB2/Driver/mysql.php +++ b/MDB2/Driver/mysql.php @@ -151,6 +151,9 @@ function errorInfo($error = null) 1146 => MDB2_ERROR_NOSUCHTABLE, 1216 => MDB2_ERROR_CONSTRAINT, 1217 => MDB2_ERROR_CONSTRAINT, + 1356 => MDB2_ERROR_DIVZERO, + 1451 => MDB2_ERROR_CONSTRAINT, + 1452 => MDB2_ERROR_CONSTRAINT, ); } if ($this->options['portability'] & MDB2_PORTABILITY_ERRORS) { diff --git a/MDB2/Driver/mysqli.php b/MDB2/Driver/mysqli.php index 208f3c9a..0795d935 100644 --- a/MDB2/Driver/mysqli.php +++ b/MDB2/Driver/mysqli.php @@ -152,6 +152,9 @@ function errorInfo($error = null) 1146 => MDB2_ERROR_NOSUCHTABLE, 1216 => MDB2_ERROR_CONSTRAINT, 1217 => MDB2_ERROR_CONSTRAINT, + 1356 => MDB2_ERROR_DIVZERO, + 1451 => MDB2_ERROR_CONSTRAINT, + 1452 => MDB2_ERROR_CONSTRAINT, ); } if ($this->options['portability'] & MDB2_PORTABILITY_ERRORS) {