Commit 557de2a7 authored by Hiroshi Inoue's avatar Hiroshi Inoue

Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.

parent eb953c32
...@@ -526,6 +526,12 @@ SQLBulkOperations(HSTMT hstmt, SQLSMALLINT operation) ...@@ -526,6 +526,12 @@ SQLBulkOperations(HSTMT hstmt, SQLSMALLINT operation)
{ {
static char *func = "SQLBulkOperations"; static char *func = "SQLBulkOperations";
StatementClass *stmt = (StatementClass *) hstmt; StatementClass *stmt = (StatementClass *) hstmt;
#ifndef DRIVER_CURSOR_IMPLEMENT
stmt->errornumber = STMT_NOT_IMPLEMENTED_ERROR;
stmt->errormsg = "driver must be compiled with the DRIVER_CURSOR_IMPLEMENT option";
SC_log_error(func, "", stmt);
return SQL_ERROR;
#else
ARDFields *opts = SC_get_ARD(stmt); ARDFields *opts = SC_get_ARD(stmt);
RETCODE ret; RETCODE ret;
UInt4 offset, bind_size = opts->bind_size, *bmark; UInt4 offset, bind_size = opts->bind_size, *bmark;
...@@ -586,4 +592,5 @@ SQL_AUTOCOMMIT_OFF); ...@@ -586,4 +592,5 @@ SQL_AUTOCOMMIT_OFF);
break; break;
} }
return ret; return ret;
#endif /* DRIVER_CURSOR_IMPLEMENT */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment