diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-20 15:46:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-20 15:46:21 +0200 |
commit | 13d8a137617ac9b23554594a80b97a35b65920b1 (patch) | |
tree | 92e24e8304699b319464565c33c830a0e7ca9367 /odb/mssql/error.cxx | |
parent | 03796abd9812446b5ce446d7ec48d9349acb833c (diff) |
Add test
Diffstat (limited to 'odb/mssql/error.cxx')
-rw-r--r-- | odb/mssql/error.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/odb/mssql/error.cxx b/odb/mssql/error.cxx index f947541..0c41d32 100644 --- a/odb/mssql/error.cxx +++ b/odb/mssql/error.cxx @@ -3,7 +3,6 @@ // license : ODB NCUEL; see accompanying LICENSE file #include <string> -#include <iostream> // @@ TMP #include <odb/mssql/mssql.hxx> #include <odb/mssql/error.hxx> @@ -224,30 +223,6 @@ namespace odb } e.append (native_code, sqlstate, msg); - - //@@ TMP - if (htype == SQL_HANDLE_STMT) - { - SQLLEN n; - r = SQLGetDiagField (htype, - h, - i, - SQL_DIAG_ROW_NUMBER, - &n, - 0, - 0); - - cerr << i << " " << sqlstate << " "; - - // check error - if (n == SQL_NO_ROW_NUMBER) - cerr << "not associated with any row" << endl; - else if (n == SQL_ROW_NUMBER_UNKNOWN) - cerr << "unable to determine row association" << endl; - else - cerr << "associated with " << n << endl; - } - } else e.append (0, "?????", "unable to extract information for this " |