diff options
| author | Johannes Schlüter <johannes@php.net> | 2011-08-31 15:46:07 +0000 |
|---|---|---|
| committer | Johannes Schlüter <johannes@php.net> | 2011-08-31 15:46:07 +0000 |
| commit | 35597286d69cf25635d148c351f9da208af2fb49 (patch) | |
| tree | 91587958e01fa3fce172560d35b84d62b569e87b /ext/pdo_mysql/get_error_codes.php | |
| parent | 4fb7afb0bf1ea8381a0922b3e5c3d7c0830a0eb8 (diff) | |
| download | php-git-35597286d69cf25635d148c351f9da208af2fb49.tar.gz | |
- Update PDO_mysql error mapping
Diffstat (limited to 'ext/pdo_mysql/get_error_codes.php')
| -rw-r--r-- | ext/pdo_mysql/get_error_codes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/get_error_codes.php b/ext/pdo_mysql/get_error_codes.php index 2785c93b99..a1ed85016c 100644 --- a/ext/pdo_mysql/get_error_codes.php +++ b/ext/pdo_mysql/get_error_codes.php @@ -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 @@ } -?>
\ No newline at end of file +?> |
