lib/rgviz_rails/adapters/postgresql_adapter.rb in rgviz-rails-0.30 vs lib/rgviz_rails/adapters/postgresql_adapter.rb in rgviz-rails-0.31

- old
+ new

@@ -60,9 +60,16 @@ visitor << ")" when ScalarFunctionColumn::Lower visitor << "lower(" node.arguments[0].accept visitor visitor << ")" + when ScalarFunctionColumn::Concat + visitor << "(" + node.arguments.each_with_index do |arg, i| + visitor << " || " if i > 0 + arg.accept visitor + end + visitor << ")" end end end end