sql-parser-vlad 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sql-parser/parser.racc +1 -0
- data/lib/sql-parser/parser.racc.rb +561 -559
- data/lib/sql-parser/parser.rex.rb +4 -1
- data/lib/sql-parser/parser.tab.rb +561 -559
- data/lib/sql-parser/sql_visitor.rb +4 -0
- data/lib/sql-parser/statement.rb +3 -0
- data/lib/sql-parser/version.rb +1 -1
- metadata +2 -2
@@ -45,7 +45,7 @@ class SQLParser::Parser < Racc::Parser
|
|
45
45
|
|
46
46
|
def next_token
|
47
47
|
return if @ss.eos?
|
48
|
-
|
48
|
+
|
49
49
|
# skips empty actions
|
50
50
|
until token = _next_token or @ss.eos?; end
|
51
51
|
token
|
@@ -243,6 +243,9 @@ class SQLParser::Parser < Racc::Parser
|
|
243
243
|
when (text = @ss.scan(/\+/i))
|
244
244
|
action { [:plus_sign, text] }
|
245
245
|
|
246
|
+
when (text = @ss.scan(/\%/i))
|
247
|
+
action { [:modulo, text] }
|
248
|
+
|
246
249
|
when (text = @ss.scan(/\-/i))
|
247
250
|
action { [:minus_sign, text] }
|
248
251
|
|