Skip to content

Commit d8f1520

Browse files
author
Ilia Alshanetsky
committed
MFB: Revert addition of - char support for bound param names
1 parent 38d7b36 commit d8f1520

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

ext/pdo/pdo_sql_parser.c

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by re2c 0.11.0 on Mon Oct 29 18:37:31 2007 */
1+
/* Generated by re2c 0.11.0 on Mon Nov 26 16:10:00 2007 */
22
#line 1 "ext/pdo/pdo_sql_parser.re"
33
/*
44
+----------------------------------------------------------------------+
@@ -94,7 +94,6 @@ static int scan(Scanner *s)
9494
case '\'':
9595
case ':':
9696
case '?': goto yy13;
97-
case '-':
9897
case '0':
9998
case '1':
10099
case '2':
@@ -172,7 +171,7 @@ static int scan(Scanner *s)
172171
yy7:
173172
#line 61 "ext/pdo/pdo_sql_parser.re"
174173
{ RET(PDO_PARSER_BIND_POS); }
175-
#line 176 "ext/pdo/pdo_sql_parser.c"
174+
#line 175 "ext/pdo/pdo_sql_parser.c"
176175
yy8:
177176
++YYCURSOR;
178177
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -188,12 +187,12 @@ static int scan(Scanner *s)
188187
yy10:
189188
#line 63 "ext/pdo/pdo_sql_parser.re"
190189
{ RET(PDO_PARSER_TEXT); }
191-
#line 192 "ext/pdo/pdo_sql_parser.c"
190+
#line 191 "ext/pdo/pdo_sql_parser.c"
192191
yy11:
193192
++YYCURSOR;
194193
#line 64 "ext/pdo/pdo_sql_parser.re"
195194
{ RET(PDO_PARSER_EOI); }
196-
#line 197 "ext/pdo/pdo_sql_parser.c"
195+
#line 196 "ext/pdo/pdo_sql_parser.c"
197196
yy13:
198197
++YYCURSOR;
199198
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -208,13 +207,12 @@ static int scan(Scanner *s)
208207
yy15:
209208
#line 59 "ext/pdo/pdo_sql_parser.re"
210209
{ RET(PDO_PARSER_TEXT); }
211-
#line 212 "ext/pdo/pdo_sql_parser.c"
210+
#line 211 "ext/pdo/pdo_sql_parser.c"
212211
yy16:
213212
++YYCURSOR;
214213
if(YYLIMIT == YYCURSOR) YYFILL(1);
215214
yych = *YYCURSOR;
216215
switch(yych) {
217-
case '-':
218216
case '0':
219217
case '1':
220218
case '2':
@@ -283,7 +281,7 @@ static int scan(Scanner *s)
283281
yy18:
284282
#line 60 "ext/pdo/pdo_sql_parser.re"
285283
{ RET(PDO_PARSER_BIND); }
286-
#line 287 "ext/pdo/pdo_sql_parser.c"
284+
#line 285 "ext/pdo/pdo_sql_parser.c"
287285
yy19:
288286
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
289287
yych = *YYCURSOR;
@@ -306,7 +304,7 @@ static int scan(Scanner *s)
306304
yy22:
307305
#line 58 "ext/pdo/pdo_sql_parser.re"
308306
{ RET(PDO_PARSER_TEXT); }
309-
#line 310 "ext/pdo/pdo_sql_parser.c"
307+
#line 308 "ext/pdo/pdo_sql_parser.c"
310308
yy23:
311309
++YYCURSOR;
312310
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -330,7 +328,7 @@ static int scan(Scanner *s)
330328
yy27:
331329
#line 57 "ext/pdo/pdo_sql_parser.re"
332330
{ RET(PDO_PARSER_TEXT); }
333-
#line 334 "ext/pdo/pdo_sql_parser.c"
331+
#line 332 "ext/pdo/pdo_sql_parser.c"
334332
yy28:
335333
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
336334
yych = *YYCURSOR;

ext/pdo/pdo_sql_parser.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static int scan(Scanner *s)
4646

4747
s->tok = cursor;
4848
/*!re2c
49-
BINDCHR = [:][a-zA-Z0-9_-]+;
49+
BINDCHR = [:][a-zA-Z0-9_]+;
5050
QUESTION = [?];
5151
SPECIALS = [:?"'];
5252
EOF = [\000];

0 commit comments

Comments
 (0)