File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2121
2222require 'active_record'
2323require 'active_record/base'
24- require 'active_record/base'
2524require 'arel/arel_crate'
2625require 'arel/visitors/visitor'
2726require 'active_support/dependencies/autoload'
@@ -126,14 +125,18 @@ def supports_migrations?
126125 true
127126 end
128127
128+ def supports_datetime_with_precision?
129+ true
130+ end
131+
129132 def connect
130133 @connection = CrateRuby ::Client . new ( [ "#{ @host } :#{ @port } " ] )
131134
132135 # 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?
134138 def @connection . supports_datetime_with_precision?
135- # TODO: Should it be `true` instead?
136- return false
139+ return @adapter_supports_datetime_with_precision
137140 end
138141
139142 end
You can’t perform that action at this time.
0 commit comments