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
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 var templates = new Dictionary < int , string > ( ) ;
5051 using ( var command = connection . CreateCommand ( ) ) {
You can’t perform that action at this time.
0 commit comments