Tim Bunce wrote:
> Try the appended patch. Please let me know if it works.
It builds fine with the patch applied.
It doesn't work thereafter but it's obviously unrelated to the patch:
inside the DBI->connect, the call to OCIEnvInit() oddly returns
OCI_ERROR, I'll try to understand why this happens.
> --- oci8.c 2003/03/27 16:44:15 1.38
> +++ oci8.c 2003/03/31 23:28:46
> @@ -1630,7 +1630,7 @@
> "Unable to parse table name for LOB refetch");
>
> OCIHandleAlloc_ok(imp_sth->envhp, &dschp, OCI_HTYPE_DESCRIBE, status);
> - /* BEGIN NEW */
> +#ifdef OCI_ATTR_OBJ_NAME /* not in 8.0.x */
> OCIDescribeAny_log_stat(imp_sth->svchp, errhp, tablename, strlen(tablename),
> (ub1)OCI_OTYPE_NAME, (ub1)1, (ub1)OCI_PTYPE_SYN, dschp, status);
> if (status == OCI_SUCCESS) { /* There is a synonym, get the schema */
> @@ -1648,7 +1648,7 @@
> if (DBIS->debug >= 3)
> PerlIO_printf(DBILOGFP, " lob refetch synonym, schema=%s, name=%s, new
> tablename=%s\n", syn_schema, syn_name, tablename);
> }
> - /* END NEW */
> +#endif /* OCI_ATTR_OBJ_NAME */
> OCIDescribeAny_log_stat(imp_sth->svchp, errhp, tablename, strlen(tablename),
> (ub1)OCI_OTYPE_NAME, (ub1)1, (ub1)OCI_PTYPE_TABLE, dschp, status);
> if (status != OCI_SUCCESS) {
>
>
>
--
Daniel