Sha256: e7d230d2f2b15e720c45883bbd26c92245838fc21508166f7c015c7a9f17fc99

Contents?: true

Size: 471 Bytes

Versions: 39

Compression:

Stored size: 471 Bytes

Contents

module Bmg
  module Sql
    module FuncCall
      include Expr

      def func_name
        self[1]
      end

      def func_args
        self[2..-1]
      end

      def is_computed?
        true
      end

      def to_sql(buffer, dialect)
        buffer << summary_name.upcase << "("
        buffer << func_args.map{|fa| fa.to_sql("", dialect) }.join(', ')
        buffer << ")"
        buffer
      end

    end # module FuncCall
  end # module Sql
end # module Bmg

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sql/nodes/func_call.rb
bmg-0.23.2 lib/bmg/sql/nodes/func_call.rb
bmg-0.23.1 lib/bmg/sql/nodes/func_call.rb
bmg-0.23.0 lib/bmg/sql/nodes/func_call.rb
bmg-0.21.5 lib/bmg/sql/nodes/func_call.rb
bmg-0.21.4 lib/bmg/sql/nodes/func_call.rb
bmg-0.20.5 lib/bmg/sql/nodes/func_call.rb
bmg-0.19.3 lib/bmg/sql/nodes/func_call.rb
bmg-0.21.3 lib/bmg/sql/nodes/func_call.rb
bmg-0.21.2 lib/bmg/sql/nodes/func_call.rb
bmg-0.21.0 lib/bmg/sql/nodes/func_call.rb
bmg-0.20.4 lib/bmg/sql/nodes/func_call.rb
bmg-0.20.2 lib/bmg/sql/nodes/func_call.rb
bmg-0.20.1 lib/bmg/sql/nodes/func_call.rb
bmg-0.20.0 lib/bmg/sql/nodes/func_call.rb
bmg-0.19.2 lib/bmg/sql/nodes/func_call.rb
bmg-0.19.1 lib/bmg/sql/nodes/func_call.rb
bmg-0.19.0 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.15 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.14 lib/bmg/sql/nodes/func_call.rb