lib/rgviz_rails/adapters/mysql_adapter.rb in rgviz-rails-0.30 vs lib/rgviz_rails/adapters/mysql_adapter.rb in rgviz-rails-0.31
- old
+ new
@@ -54,9 +54,16 @@
visitor << ")"
when ScalarFunctionColumn::Lower
visitor << "lower("
node.arguments[0].accept visitor
visitor << ")"
+ when ScalarFunctionColumn::Concat
+ visitor << "concat("
+ node.arguments.each_with_index do |arg, i|
+ visitor << ", " if i > 0
+ arg.accept visitor
+ end
+ visitor << ")"
end
end
end
end