diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
commit | 91c962e4615101e14be4c720fc386878ddb598a4 (patch) | |
tree | 9c62ace7ee457f9e7c1edd9c89a5b6fba274d363 /odb/mssql/error.cxx | |
parent | 8823eb1c28f6589068a080a68283a8ddb47cb71b (diff) |
Implement statements; add support for tracing
Diffstat (limited to 'odb/mssql/error.cxx')
-rw-r--r-- | odb/mssql/error.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/odb/mssql/error.cxx b/odb/mssql/error.cxx index dffe4cf..613f346 100644 --- a/odb/mssql/error.cxx +++ b/odb/mssql/error.cxx @@ -87,13 +87,12 @@ namespace odb 0, &msg_size); - string s (sqlstate); - if (r == SQL_NO_DATA) break; else if (SQL_SUCCEEDED (r)) { code nc; + string s (sqlstate); if (s == "40001") // Serialization failure (native code 1205). nc = code_deadlock; |