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 d7dfafc commit 3bf4e22Copy full SHA for 3bf4e22
lib/active_record/connection_adapters/sqlserver/database_tasks.rb
@@ -28,7 +28,7 @@ def charset
28
end
29
30
def compatibility_level
31
- select_value "SELECT compatibility_level FROM sys.databases WHERE name = DB_NAME()"
+ select_value "SELECT COMPATIBILITY_LEVEL FROM SYS.DATABASES WHERE NAME = DB_NAME()"
32
33
34
def collation
0 commit comments