Skip to content

Commit

Permalink
Request #9708: MySQL/MySQLi error codes for MySQL 5 (patch by Adam Ha…
Browse files Browse the repository at this point in the history
…rvey)

git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@226599 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
quipo committed Jan 6, 2007
1 parent be676b7 commit 933b806
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MDB2/Driver/mysql.php
Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions MDB2/Driver/mysqli.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 933b806

Please sign in to comment.