diff options
author | Hiroshi Inoue | 2002-04-09 03:58:33 +0000 |
---|---|---|
committer | Hiroshi Inoue | 2002-04-09 03:58:33 +0000 |
commit | 557de2a715f38d58bf646fc0d2c5ca9d3c153c42 (patch) | |
tree | e15e83d7f9875aeeeed56fc2bc5e1541b7a456b0 | |
parent | eb953c320026cc467c60aad83bd60198e0d3534d (diff) |
Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.
-rw-r--r-- | src/interfaces/odbc/odbcapi30.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interfaces/odbc/odbcapi30.c b/src/interfaces/odbc/odbcapi30.c index 8bcb1cab146..0c03007701b 100644 --- a/src/interfaces/odbc/odbcapi30.c +++ b/src/interfaces/odbc/odbcapi30.c @@ -526,6 +526,12 @@ SQLBulkOperations(HSTMT hstmt, SQLSMALLINT operation) { static char *func = "SQLBulkOperations"; 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); RETCODE ret; UInt4 offset, bind_size = opts->bind_size, *bmark; @@ -586,4 +592,5 @@ SQL_AUTOCOMMIT_OFF); break; } return ret; +#endif /* DRIVER_CURSOR_IMPLEMENT */ } |