aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/statement.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r--src/interfaces/odbc/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c
index cf3db03ead3..122fcbff9bb 100644
--- a/src/interfaces/odbc/statement.c
+++ b/src/interfaces/odbc/statement.c
@@ -955,7 +955,7 @@ SC_execute(StatementClass *self)
/* send the declare/select */
res = CC_send_query(conn, self->stmt_with_params, NULL, qflag);
if (SC_is_fetchcursor(self) && res != NULL &&
- QR_command_successful(res))
+ QR_command_maybe_successful(res))
{
QR_Destructor(res);
qflag &= (~ GO_INTO_TRANSACTION);