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 25a7e81 commit 51d4393Copy full SHA for 51d4393
Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/DriverFactory.cs
@@ -44,7 +44,8 @@ private static ErrorMessageParser CreateMessageParser(SqlServerConnection connec
44
bool isEnglish;
45
using (var command = connection.CreateCommand()) {
46
command.CommandText = LangIdQuery;
47
- isEnglish = command.ExecuteScalar().ToString()=="0";
+ var langId = (short) command.ExecuteScalar();
48
+ isEnglish = langId == 0 || langId == 23;
49
}
50
var templates = new Dictionary<int, string>();
51
0 commit comments