Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4056a39

Browse files
committedMar 20, 2025·
Mark version query as a SCHEMA query
1 parent ea80f48 commit 4056a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/active_record/connection_adapters/sqlserver_adapter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def version_year
496496
end
497497

498498
def sqlserver_version
499-
@sqlserver_version ||= execute("SELECT @@version").rows.first.first.to_s
499+
@sqlserver_version ||= execute("SELECT @@version", "SCHEMA").rows.first.first.to_s
500500
end
501501

502502
private

0 commit comments

Comments
 (0)
Please sign in to comment.