We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70afb4d commit 86d6fdbCopy full SHA for 86d6fdb
lib/active_record/connection_adapters/cockroachdb/quoting.rb
@@ -50,6 +50,15 @@ def quote(value)
50
super
51
end
52
53
+
54
+ def quoted_date(value)
55
+ puts "quoted_date(value=#{value}) #{value.class}"
56
+ # CockroachDB differs from PostgreSQL in its representation of
57
+ # a `timestamp with timezone`, it does not always include the
58
+ # timezone offset (e.g. `+00`), so we need to add it here.
59
+ # This is tested by `BasicsTest#test_default_in_local_time`.
60
+ super + value.strftime("%z")
61
+ end
62
63
64
0 commit comments