diff options
author | Michael Wallner <mike@php.net> | 2013-08-20 19:19:02 +0200 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2013-08-20 19:19:02 +0200 |
commit | 27c803aaed259f76a66db1278eea05f30a8ec956 (patch) | |
tree | d77af4bca3cf44849ca9feafe7ee3d8c94e81b1a /ext/pdo/pdo_sql_parser.re | |
parent | d487f5e9acc55fb76d71c40e451efebbc087af35 (diff) | |
download | php-git-27c803aaed259f76a66db1278eea05f30a8ec956.tar.gz |
Fix bug #64953 (Postgres prepared statement positional parameter casting)
Diffstat (limited to 'ext/pdo/pdo_sql_parser.re')
-rw-r--r-- | ext/pdo/pdo_sql_parser.re | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index 80e3b4f95f..1936a37340 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -50,14 +50,14 @@ static int scan(Scanner *s) QUESTION = [?]; COMMENTS = ("/*"([^*]+|[*]+[^/*])*[*]*"*/"|"--"[^\r\n]*); SPECIALS = [:?"']; - MULTICHAR = [:?]; + MULTICHAR = ([:]{2,}|[?]{2,}); ANYNOEOF = [\001-\377]; */ /*!re2c (["](([\\]ANYNOEOF)|ANYNOEOF\["\\])*["]) { RET(PDO_PARSER_TEXT); } (['](([\\]ANYNOEOF)|ANYNOEOF\['\\])*[']) { RET(PDO_PARSER_TEXT); } - MULTICHAR{2,} { RET(PDO_PARSER_TEXT); } + MULTICHAR { RET(PDO_PARSER_TEXT); } BINDCHR { RET(PDO_PARSER_BIND); } QUESTION { RET(PDO_PARSER_BIND_POS); } SPECIALS { SKIP_ONE(PDO_PARSER_TEXT); } |