diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index a5f02316f5bd42e421bf1905ed49ad878a37cf7f..8ba91da1b4659f89890c450b6fe9940475457abe 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -172,7 +172,7 @@ static SQLHSTMT generic_execute(struct odbc_obj *obj, void *data) } res = SQLExecDirect(stmt, (unsigned char *)sql, SQL_NTS); - if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) { + if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO) && (res != SQL_NO_DATA)) { if (res == SQL_ERROR) { int i; SQLINTEGER nativeerror=0, numfields=0;