projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
SQLite parser to understand CHECK with parens
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Parser
/
SQLite.pm
diff --git
a/lib/SQL/Translator/Parser/SQLite.pm
b/lib/SQL/Translator/Parser/SQLite.pm
index
d1c7b6f
..
8f09464
100644
(file)
--- a/
lib/SQL/Translator/Parser/SQLite.pm
+++ b/
lib/SQL/Translator/Parser/SQLite.pm
@@
-477,7
+477,8
@@
column_list : field_name(s /,/)
parens_value_list : '(' VALUE(s /,/) ')'
{ $item[2] }
-expr : /[^)]+/
+expr : /[^)]* \( [^)]+ \) [^)]*/x # parens, balanced one deep
+ | /[^)]+/
sort_order : /(ASC|DESC)/i