diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-24 10:02:15 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-24 10:02:15 +0100 |
commit | 4ab84b086d4af4f824f5f231cf7d97121ca23470 (patch) | |
tree | 0a33d1dd146a910448a02330ea0f1923ddf9d57d /libodbcpp/odbc-modifycommand.cpp | |
parent | Fix uninitialised memory warning and assert (diff) | |
download | libdbpp-odbc-4ab84b086d4af4f824f5f231cf7d97121ca23470.tar.bz2 libdbpp-odbc-4ab84b086d4af4f824f5f231cf7d97121ca23470.tar.xz libdbpp-odbc-4ab84b086d4af4f824f5f231cf7d97121ca23470.zip |
Don't rely on libdbppcore's columns
Also reduce risk of needing to resize at all by getting the octet size
Diffstat (limited to 'libodbcpp/odbc-modifycommand.cpp')
-rw-r--r-- | libodbcpp/odbc-modifycommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/odbc-modifycommand.cpp b/libodbcpp/odbc-modifycommand.cpp index 0eeca01..60bb7c4 100644 --- a/libodbcpp/odbc-modifycommand.cpp +++ b/libodbcpp/odbc-modifycommand.cpp @@ -15,7 +15,7 @@ ODBC::ModifyCommand::~ModifyCommand() unsigned int ODBC::ModifyCommand::execute(bool anc) { - RETCODE rc = SQLExecute(hStmt); + RETCODE rc = SQLExecute(hStmt); if (!SQL_SUCCEEDED(rc)) { if (rc != SQL_NO_DATA || !anc) { throw Error(rc, SQL_HANDLE_STMT, hStmt); |