From cea2b1e867ea67619e03d15a992b28800e8765c9 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 8 Aug 2010 17:24:19 +0000 Subject: Tidy up hierarchy Add SqlMergeTask --- libodbcpp/modifycommand.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libodbcpp/modifycommand.cpp b/libodbcpp/modifycommand.cpp index 77adfb9..45022b0 100644 --- a/libodbcpp/modifycommand.cpp +++ b/libodbcpp/modifycommand.cpp @@ -18,7 +18,10 @@ ODBC::ModifyCommand::execute(bool anc) } RETCODE rc = SQLExecute(hStmt); if (rc != SQL_SUCCESS) { - if (rc != SQL_NO_DATA || !anc) { + if (rc == SQL_SUCCESS_WITH_INFO) { + // Log info + } + else if (rc != SQL_NO_DATA || !anc) { connection.abortTx(); throw Error(rc, SQL_HANDLE_STMT, hStmt, "%s: SQLExecute", __FUNCTION__); -- cgit v1.2.3