lasawei / common-schema

Automatically exported from code.google.com/p/common-schema
0 stars 0 forks source link

tokenizer broken with strings #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Posting this here otherwise I forget the string to reproduce the problem

mysql> call _get_sql_tokens(',''\n''');
+----+-------+-------+-------+--------+
| id | start | level | token | state  |
+----+-------+-------+-------+--------+
|  1 |     2 |     0 | ,     | comma  |
|  2 |     5 |     0 | '
'   | string |
|  3 |     5 |     0 |       | start  |
+----+-------+-------+-------+--------+

Original issue reported on code.google.com by roland.bouman on 15 Sep 2011 at 6:47

GoogleCodeExporter commented 8 years ago

Original comment by roland.bouman on 15 Sep 2011 at 8:52

GoogleCodeExporter commented 8 years ago
it's not a bug, the output is just confusing. silly me.

Original comment by roland.bouman on 15 Sep 2011 at 8:53