From 4ab84b086d4af4f824f5f231cf7d97121ca23470 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 24 Aug 2018 10:02:15 +0100 Subject: Don't rely on libdbppcore's columns Also reduce risk of needing to resize at all by getting the octet size --- libodbcpp/odbc-modifycommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libodbcpp/odbc-modifycommand.cpp') 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); -- cgit v1.2.3