sql-parser-vlad 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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