Skip to content

Commit

Permalink
- Update PDO_mysql error mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes committed Aug 31, 2011
1 parent 6612bb1 commit c25f042
Show file tree
Hide file tree
Showing 2 changed files with 518 additions and 260 deletions.
4 changes: 2 additions & 2 deletions ext/pdo_mysql/get_error_codes.php
Expand Up @@ -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]));
}
Expand All @@ -24,4 +24,4 @@
}


?>
?>

0 comments on commit c25f042

Please sign in to comment.