diff options
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; |