summaryrefslogtreecommitdiff
path: root/libodbcpp/modifycommand.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-08-08 17:24:19 +0000
committerrandomdan <randomdan@localhost>2010-08-08 17:24:19 +0000
commitcea2b1e867ea67619e03d15a992b28800e8765c9 (patch)
treea5d6a1fbb848c17f1abfd699c05542f2b402a1f4 /libodbcpp/modifycommand.cpp
parentCache the result of default column compose (diff)
downloadlibdbpp-odbc-cea2b1e867ea67619e03d15a992b28800e8765c9.tar.bz2
libdbpp-odbc-cea2b1e867ea67619e03d15a992b28800e8765c9.tar.xz
libdbpp-odbc-cea2b1e867ea67619e03d15a992b28800e8765c9.zip
Tidy up hierarchy
Add SqlMergeTask
Diffstat (limited to 'libodbcpp/modifycommand.cpp')
-rw-r--r--libodbcpp/modifycommand.cpp5
1 files changed, 4 insertions, 1 deletions
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__);