diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-13 13:54:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-13 13:54:29 +0200 |
commit | effe0f97e4b869dd2b333fe7f213d55f3363cb82 (patch) | |
tree | 600de990f186255bbe6c5e4a000d912ced509c59 /odb/mssql/error.cxx | |
parent | 09808a6118977c0a40a40fe1265ebe03c8d9e5fe (diff) |
Bulk update implementation
Diffstat (limited to 'odb/mssql/error.cxx')
-rw-r--r-- | odb/mssql/error.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mssql/error.cxx b/odb/mssql/error.cxx index acc48dc..23d5be9 100644 --- a/odb/mssql/error.cxx +++ b/odb/mssql/error.cxx @@ -191,7 +191,7 @@ namespace odb break; else if (SQL_SUCCEEDED (r) && n != SQL_NO_ROW_NUMBER && - n == SQL_ROW_NUMBER_UNKNOWN && + n != SQL_ROW_NUMBER_UNKNOWN && n != static_cast<SQLLEN> (pos + 1)) // 1-based continue; } @@ -237,6 +237,8 @@ namespace odb 0, 0); + cerr << i << " "; + // check error if (n == SQL_NO_ROW_NUMBER) cerr << "not associated with any row" << endl; |