Skip to content

Commit be032e7

Browse files
committed
Register char types as string
1 parent b26d642 commit be032e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def initialize_type_map(m)
401401
m.register_type "nvarchar(max)", SQLServer::Type::UnicodeVarcharMax.new
402402
m.register_type "nvarchar(max)", SQLServer::Type::UnicodeVarcharMax.new
403403
m.register_type "ntext", SQLServer::Type::UnicodeText.new
404+
m.register_type %r(char)i, SQLServer::Type::String.new
404405

405406
# Binary Strings
406407
register_class_with_limit m, %r{\Abinary}i, SQLServer::Type::Binary

0 commit comments

Comments
 (0)