Skip to content

Commit d9c7f81

Browse files
committed
Ensure 5-0-stable WITH NO_INFOMSGS for user options query.
1 parent 2ae162d commit d9c7f81

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
@@ -132,7 +132,7 @@ def use_database(database = nil)
132132

133133
def user_options
134134
return {} if sqlserver_azure?
135-
rows = select_rows('dbcc useroptions', 'SCHEMA')
135+
rows = select_rows('DBCC USEROPTIONS WITH NO_INFOMSGS', 'SCHEMA')
136136
rows = rows.first if rows.size == 2 && rows.last.empty?
137137
rows.reduce(HashWithIndifferentAccess.new) do |values, row|
138138
if row.instance_of? Hash

0 commit comments

Comments
 (0)