Skip to content

Commit 31b15a3

Browse files
committed
Off topic: Forced Azure Version updated and moved to constant
1 parent 30e1819 commit 31b15a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/DriverFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ FROM [master].[sys].[sysmessages] msg
3737

3838
private const string VersionQuery = "SELECT @@VERSION";
3939

40+
private const string ForcedAzureVersion = "12.0.0.0";
41+
4042
private static ErrorMessageParser CreateMessageParser(SqlServerConnection connection)
4143
{
4244
bool isEnglish;
@@ -151,7 +153,7 @@ protected override SqlDriver CreateDriver(string connectionString, SqlDriverConf
151153
var parser = isAzure ? new ErrorMessageParser() : CreateMessageParser(connection);
152154

153155
var versionString = isForcedVersion
154-
? isForcedAzure ? "10.0.0.0" : forcedServerVersion
156+
? isForcedAzure ? ForcedAzureVersion : forcedServerVersion
155157
: connection.ServerVersion ?? string.Empty;
156158
var version = new Version(versionString);
157159
var defaultSchema = GetDefaultSchema(connection);

0 commit comments

Comments
 (0)