Skip to content

Commit d27afbb

Browse files
committed
Merge branch '6.0' into 7.0
2 parents 2e39a45 + 4757380 commit d27afbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ private static ErrorMessageParser CreateMessageParser(SqlServerConnection connec
4444
bool isEnglish;
4545
using (var command = connection.CreateCommand()) {
4646
command.CommandText = LangIdQuery;
47-
isEnglish = command.ExecuteScalar().ToString()=="0";
47+
var langId = (short) command.ExecuteScalar();
48+
isEnglish = langId == 0 || langId == 23;
4849
}
4950

5051
var templates = new Dictionary<int, string>();

0 commit comments

Comments
 (0)