lib/bmg/sql/builder.rb in bmg-0.16.3 vs lib/bmg/sql/builder.rb in bmg-0.16.4
- old
+ new
@@ -87,21 +87,23 @@
builder :select_star
def from_clause(table, qualifier)
arg = case table
when String, Symbol then table_as(table, qualifier)
+ when ::Sequel::SQL::QualifiedIdentifier then table_as(table, qualifier)
when Expr then subquery_as(table, qualifier)
else native_table_as(table, qualifier)
end
[ :from_clause, arg ]
end
builder :from_clause
def table_as(table, qualifier)
table = case table
- when String, Symbol then table_name(table)
- else table
- end
+ when String, Symbol then table_name(table)
+ when ::Sequel::SQL::QualifiedIdentifier then table_name(table)
+ else table
+ end
[:table_as,
table,
range_var_name(qualifier) ]
end
builder :table_as