lib/rgviz_rails/adapters/postgresql_adapter.rb in rgviz-rails-0.50 vs lib/rgviz_rails/adapters/postgresql_adapter.rb in rgviz-rails-0.51

- old
+ new

@@ -69,7 +69,19 @@ arg.accept visitor end visitor << ")" end end + + def visit_date_column(node, visitor) + visitor << "#{visitor.escaped_string(node.value.strftime("%Y-%m-%d"))}" + end + + def visit_date_time_column(node, visitor) + visitor << "#{visitor.escaped_string(node.value.strftime("%Y-%m-%d %H:%M:%S"))}" + end + + def visit_time_of_day_column(node, visitor) + visitor << "#{visitor.escaped_string(node.value.strftime("%H:%M:%S"))}" + end end end