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 1a2f4dc commit 5f26c0fCopy full SHA for 5f26c0f
lib/active_record/connection_adapters/sqlserver/database_statements.rb
@@ -321,7 +321,8 @@ def sp_executesql_types_and_parameters(binds)
321
322
def sp_executesql_sql_type(attr)
323
if attr.respond_to?(:type)
324
- type = attr.type.serialized? ? attr.type.subtype : attr.type
+ type = attr.type.is_a?(ActiveRecord::Normalization::NormalizedValueType) ? attr.type.cast_type : attr.type
325
+ type = type.subtype if type.serialized?
326
327
return type.sqlserver_type if type.respond_to?(:sqlserver_type)
328
0 commit comments