Skip to content

Commit 5476d72

Browse files
committed
Class#parent inspection is dirt slow.
1 parent ef909e0 commit 5476d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def handle_to_fields_and_rows_odbc(handle)
256256
end
257257
rows = results.inject([]) do |rows,row|
258258
row.each_with_index do |value, i|
259-
if value.is_a? raw_connection.class.parent::TimeStamp
259+
if value.respond_to?(:to_sqlserver_string)
260260
row[i] = value.to_sqlserver_string
261261
end
262262
end

0 commit comments

Comments
 (0)