sql-parser2 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -76,7 +76,7 @@ module SQLParser
76
76
  end
77
77
 
78
78
  def visit_All(o)
79
- '*'
79
+ o.table.nil? ? '*' : "#{visit(o.table)}.*"
80
80
  end
81
81
 
82
82
  def visit_TableExpression(o)
@@ -154,6 +154,13 @@ module SQLParser
154
154
  end
155
155
 
156
156
  class All < Node
157
+
158
+ def initialize(table = nil)
159
+ @table = table
160
+ end
161
+
162
+ attr_reader :table
163
+
157
164
  end
158
165
 
159
166
  class TableExpression < Node
@@ -1,5 +1,5 @@
1
1
  module SQLParser
2
2
 
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql-parser2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dray Lacy