if (S->stmt != SQL_NULL_HANDLE) {
if (stmt->executed) {
- SQLCancel(S->stmt);
+ SQLCloseCursor(S->stmt);
}
SQLFreeHandle(SQL_HANDLE_STMT, S->stmt);
S->stmt = SQL_NULL_HANDLE;
char *buf = NULL;
if (stmt->executed) {
- SQLCancel(S->stmt);
+ SQLCloseCursor(S->stmt);
}
rc = SQLExecute(S->stmt);
if (!stm) {
/* shouldn't happen either */
pdo_odbc_stmt_error("input LOB is no longer a stream");
- SQLCancel(S->stmt);
+ SQLCloseCursor(S->stmt);
if (buf) {
efree(buf);
}
}
if (rc == SQL_NO_DATA) {
- pdo_odbc_stmt_error("SQLFetchScroll");
+ /* pdo_odbc_stmt_error("SQLFetchScroll"); */
return 0;
}