Sha256: c87a9b03af5cacde2de05bb3a2c29e4e02bcc878939cd8e86a08a87fae593d57
Contents?: true
Size: 632 Bytes
Versions: 10
Compression:
Stored size: 632 Bytes
Contents
# rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes # https://www.postgresql.org/docs/9.1/sql-show.html class VariableShow < Arel::Nodes::Unary end end module Visitors class ToSql def visit_Arel_Nodes_VariableShow(o, collector) collector << 'SHOW ' collector << if o.expr == 'timezone' 'TIME ZONE' else o.expr end end end end end # rubocop:enable Naming/MethodName # rubocop:enable Naming/UncommunicativeMethodParamName
Version data entries
10 entries across 10 versions & 1 rubygems