Permalink
Browse files

- Update PDO_mysql error mapping

  • Loading branch information...
johannes committed Aug 31, 2011
1 parent 6612bb1 commit c25f0424c807f6df9929339d3dbf751bf3d4ff59
Showing with 518 additions and 260 deletions.
  1. +2 −2 ext/pdo_mysql/get_error_codes.php
  2. +516 −258 ext/pdo_mysql/php_pdo_mysql_sqlstate.h
@@ -5,7 +5,7 @@
while (!feof(STDIN)) {
$line = fgets(STDIN);
- if (ereg('^(ER_.*),[[:space:]]+"(.*)",[[:space:]]+"(.*)"', $line, $matches)) {
+ if (ereg('^\{[[:space:]]+(ER_.*)[[:space:]]+,[[:space:]]*"(.*)",[[:space:]]*"(.*)"', $line, $matches)) {
$codes[$matches[1]] = $matches[2];
$maxlen = max($maxlen, strlen($matches[1]));
}
@@ -24,4 +24,4 @@
}
-?>
+?>
Oops, something went wrong.

0 comments on commit c25f042

Please sign in to comment.