-2007-10-05 Ludovic Marcotte <ludovic@inverse.ca>
+2007-10-19 Ludovic Marcotte <ludovic@inverse.ca>
+
+ * We call OCITerminate() in OracleAdaptorChannel:
+ -closeChannel:
+
+ * Some formatting cleanups.
+
+2007-10-05 Ludovic Marcotte <ludovic@inverse.ca>
* Fixed otest wrt bundle name.
+
* Modified sqlFolderFormat so that for the c_deleted
columns, we default the value to 0.
+
* Added full CLOB support for reading / writing more
than 4000 characters in a CLOB column.
// Oracle's doc says: "If you call OCIStmtFetch2() with the nrows parameter set to 0, this cancels the cursor."
if (OCIStmtFetch2(_current_stm, _oci_err, (ub4)0, (ub4)OCI_FETCH_NEXT, (sb4)0, (ub4)OCI_DEFAULT))
{
- NSLog( @"Fetch cancellation failed");
+ NSLog(@"Fetch cancellation failed");
}
[self _cleanup];
// We logoff from the database.
if (OCILogoff(_oci_ctx, _oci_err))
{
- NSLog( @"FAILED: OCILogoff()");
+ NSLog(@"FAILED: OCILogoff()");
+ }
+
+ if (OCITerminate(OCI_DEFAULT))
+ {
+ NSLog(@"FAILED: OCITerminate()");
}
}
}
(dvoid * (*)(dvoid *, dvoid *, size_t))0,
(void (*)(dvoid *, dvoid *)) 0 ))
{
- NSLog( @"FAILED: OCIInitialize()");
+ NSLog(@"FAILED: OCIInitialize()");
return NO;
}
if (OCIEnvInit((OCIEnv **)&_oci_env, (ub4)OCI_DEFAULT, (size_t)0, (dvoid **)0))
{
- NSLog( @"FAILED: OCIEnvInit()");
+ NSLog(@"FAILED: OCIEnvInit()");
return NO;
}
if (OCIHandleAlloc((dvoid *)_oci_env, (dvoid *)&_oci_err, (ub4)OCI_HTYPE_ERROR, (size_t)0, (dvoid **)0))
{
- NSLog( @"FAILED: OCIHandleAlloc() on errhp");
+ NSLog(@"FAILED: OCIHandleAlloc() on errhp");
return NO;
}
if (OCILogon(_oci_env, _oci_err, &_oci_ctx, (const OraText*)username, strlen(username),
(const OraText*)password, strlen(password), (const OraText*)database, strlen(database)))
{
- NSLog( @"FAILED: OCILogon(). username = %s password = %s"
+ NSLog(@"FAILED: OCILogon(). username = %s password = %s"
@" database = %s", username, password, database);
return NO;
}