File tree 1 file changed +7
-4
lines changed
lib/active_record/connection_adapters 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
require 'active_record'
23
23
require 'active_record/base'
24
- require 'active_record/base'
25
24
require 'arel/arel_crate'
26
25
require 'arel/visitors/visitor'
27
26
require 'active_support/dependencies/autoload'
@@ -126,14 +125,18 @@ def supports_migrations?
126
125
true
127
126
end
128
127
128
+ def supports_datetime_with_precision?
129
+ true
130
+ end
131
+
129
132
def connect
130
133
@connection = CrateRuby ::Client . new ( [ "#{ @host } :#{ @port } " ] )
131
134
132
135
# Monkeypatch to make the client instance provide `supports_datetime_with_precision`.
133
- # FIXME: Implement within `CrateRuby::Client`.
136
+ # FIXME: Implement within `CrateRuby::Client`?
137
+ @adapter_supports_datetime_with_precision = supports_datetime_with_precision?
134
138
def @connection . supports_datetime_with_precision?
135
- # TODO: Should it be `true` instead?
136
- return false
139
+ return @adapter_supports_datetime_with_precision
137
140
end
138
141
139
142
end
You can’t perform that action at this time.
0 commit comments