Sha256: 9a40532d424303646ff73f2f77821451ad8249e35bc089f47f4ed1fb9b3f20ea
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 Bytes
Contents
module Alf module Sql module SelectItem include Expr def left self[1] end def right self[2] end def qualifier left.qualifier end def would_be_name left.would_be_name end def as_name last.as_name end def to_sql(buffer = "") self[1].to_sql(buffer) unless would_be_name == as_name buffer << SPACE << AS << SPACE last.to_sql(buffer) end buffer end end # module SelectItem end # module Sql end # module Alf
Version data entries
5 entries across 5 versions & 1 rubygems