[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.114
Matthew T. Kromer
matt@zope.com
Wed, 31 Jul 2002 09:35:24 -0400
Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv12371/src
Modified Files:
dco2.c
Log Message:
Make OCILob Temporary functions only compile on ORACLE8i+
=== Products/DCOracle2/src/dco2.c 1.113 => 1.114 ===
static void LobLocator_dealloc(LobLocator *self) {
sword status;
+#ifdef ORACLE8i
boolean temporary = FALSE;
+#endif
TRACE(T_ENTRY,("sA", "LobLocator_dealloc", self));
if (self->lobp) {
+#ifdef ORACLE8i
TRACE(T_CALL,("sA", "OCILobIsTemporary", self->lobp));
status = OCILobIsTemporary(self->sc->envhp, self->errhp,
@@ -4821,6 +4824,7 @@
if (status != OCI_SUCCESS)
NoticeOCIError(self->errhp, OCI_HTYPE_ERROR);
}
+#endif
TRACE(T_HCALL,("sAs", "OCIDescriptorFree", self->lobp,
@@ -5009,7 +5013,9 @@
int csfrm = SQLCS_IMPLICIT;
sword status;
PyObject *obj;
+#ifdef ORACLE8i
ub1 lobtype;
+#endif
TRACE(T_ENTRY,("sAA", "LobLocator_write", self, args));
@@ -5020,6 +5026,7 @@
TRACE(T_ARGS,("sSdddd", "LobLocator_write", s, sl, offset, csid,
csfrm));
+#ifdef ORACLE8i
if (self->ind < 0) {
/* Turn this into a temporary LOB */
@@ -5042,6 +5049,7 @@
self->ind = 0;
}
+#endif
TRACE(T_CALL,("sAdSd", "OCILobWrite", self->lobp, offset, s, sl));