File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- [main] Addressed DataTypeCollection.Add method issue of wrong adding storage-specifid types to the collection
1
+ [main] Addressed DataTypeCollection.Add method issue of wrong adding storage-specifid types to the collection
2
+ [sqlserver] Sql error messages for British English are correctly parsed
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ private static ErrorMessageParser CreateMessageParser(SqlServerConnection connec
44
44
bool isEnglish ;
45
45
using ( var command = connection . CreateCommand ( ) ) {
46
46
command . CommandText = LangIdQuery ;
47
- isEnglish = command . ExecuteScalar ( ) . ToString ( ) == "0" ;
47
+ var langId = ( short ) command . ExecuteScalar ( ) ;
48
+ isEnglish = langId == 0 || langId == 23 ;
48
49
}
49
50
var templates = new Dictionary < int , string > ( ) ;
50
51
using ( var command = connection . CreateCommand ( ) ) {
You can’t perform that action at this time.
0 commit comments