OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb953c3
)
Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.
author
Hiroshi Inoue
<inoue@tpf.co.jp>
Tue, 9 Apr 2002 03:58:33 +0000
(
03:58
+0000)
committer
Hiroshi Inoue
<inoue@tpf.co.jp>
Tue, 9 Apr 2002 03:58:33 +0000
(
03:58
+0000)
src/interfaces/odbc/odbcapi30.c
patch
|
blob
|
history
diff --git
a/src/interfaces/odbc/odbcapi30.c
b/src/interfaces/odbc/odbcapi30.c
index
8bcb1ca
..
0c03007
100644
(file)
--- 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 */
}