We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb953c3 commit 557de2aCopy full SHA for 557de2a
src/interfaces/odbc/odbcapi30.c
@@ -526,6 +526,12 @@ SQLBulkOperations(HSTMT hstmt, SQLSMALLINT operation)
526
{
527
static char *func = "SQLBulkOperations";
528
StatementClass *stmt = (StatementClass *) hstmt;
529
+#ifndef DRIVER_CURSOR_IMPLEMENT
530
+ stmt->errornumber = STMT_NOT_IMPLEMENTED_ERROR;
531
+ stmt->errormsg = "driver must be compiled with the DRIVER_CURSOR_IMPLEMENT option";
532
+ SC_log_error(func, "", stmt);
533
+ return SQL_ERROR;
534
+#else
535
ARDFields *opts = SC_get_ARD(stmt);
536
RETCODE ret;
537
UInt4 offset, bind_size = opts->bind_size, *bmark;
@@ -586,4 +592,5 @@ SQL_AUTOCOMMIT_OFF);
586
592
break;
587
593
}
588
594
return ret;
595
+#endif /* DRIVER_CURSOR_IMPLEMENT */
589
596
0 commit comments