diff options
author | randomdan <randomdan@localhost> | 2011-02-09 01:33:33 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-09 01:33:33 +0000 |
commit | 6d7c18f1119de8941c7055910e55c13c411eeb92 (patch) | |
tree | 9468662e07280c26e29de53f7fdfa228eb62ecde /libodbcpp/modifycommand.cpp | |
parent | Add missing conversion in generic visitor (diff) | |
download | libdbpp-odbc-6d7c18f1119de8941c7055910e55c13c411eeb92.tar.bz2 libdbpp-odbc-6d7c18f1119de8941c7055910e55c13c411eeb92.tar.xz libdbpp-odbc-6d7c18f1119de8941c7055910e55c13c411eeb92.zip |
Fix the build system to do dependencies properly
Break down libodbcpp into a set of base classes; libdbpp
Add a native PostgreSQL implementation of libdbpp; libpqpp
Extend project2 rdbms stuff to work with generic connectors
Update datasources to specify connector type
Build libmisc as .so
Diffstat (limited to 'libodbcpp/modifycommand.cpp')
-rw-r--r-- | libodbcpp/modifycommand.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libodbcpp/modifycommand.cpp b/libodbcpp/modifycommand.cpp index a12b9dc..7a39be5 100644 --- a/libodbcpp/modifycommand.cpp +++ b/libodbcpp/modifycommand.cpp @@ -2,7 +2,9 @@ #include "error.h" ODBC::ModifyCommand::ModifyCommand(const ODBC::Connection & c, const std::string & sql) : - Command(c, sql) + DB::Command(sql), + ODBC::Command(c, sql), + DB::ModifyCommand(sql) { } @@ -20,21 +22,19 @@ ODBC::ModifyCommand::execute(bool anc) if (!SQL_SUCCEEDED(rc)) { if (rc != SQL_NO_DATA || !anc) { connection.abortTx(); - throw Error(rc, SQL_HANDLE_STMT, hStmt, "%s: SQLExecute", - __FUNCTION__); + throw Error(rc, SQL_HANDLE_STMT, hStmt, "ODBC::ModifyCommand::execute SQLExecute"); } } SQLLEN rows; rc = SQLRowCount(hStmt, &rows); if (!SQL_SUCCEEDED(rc)) { connection.abortTx(); - throw Error(rc, SQL_HANDLE_STMT, hStmt, "%s: SQLRowCount", - __FUNCTION__); + throw Error(rc, SQL_HANDLE_STMT, hStmt, "ODBC::ModifyCommand::execute SQLRowCount"); } if (rows > 0 || anc) { return rows; } connection.abortTx(); - throw Error("%s: No rows affected", __FUNCTION__); + throw Error("No rows affected"); } |