CVS update: php3/functions
| From: | thies | Date: | Mon, 17 May 1999 12:45:04 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5739@lists.php.net to get a copy of this message | ||
Date: Monday May 17, 1999 @ 8:45
Author: thies
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv21200/functions
Modified Files:
oci8.c php3_oci8.h
Log Message:
fix for "select LOGON_TIME, PREV_SQL_ADDR from v$session".
somehow theres a problem with oci8-callbacks and certain column-sizes.
i will try to implement piecewise fetches later today!
Index: php3/functions/oci8.c
diff -u php3/functions/oci8.c:1.95 php3/functions/oci8.c:1.96
--- php3/functions/oci8.c:1.95 Wed May 12 07:42:08 1999
+++ php3/functions/oci8.c Mon May 17 08:45:03 1999
@@ -33,7 +33,7 @@
#define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */
-/* $Id: oci8.c,v 1.95 1999/05/12 11:42:08 thies Exp $ */
+/* $Id: oci8.c,v 1.96 1999/05/17 12:45:03 thies Exp $ */
/* TODO list:
*
@@ -1236,7 +1236,7 @@
case SQLT_BIN:
define_type = SQLT_STR;
/* XXX this should be user-settable!! */
- outcol->storage_size4 = OCI8_MAX_DATA_SIZE; /* 2MB */
+ outcol->storage_size4 = OCI8_MAX_DATA_SIZE;
break;
default:
@@ -1605,7 +1605,7 @@
php3_error(E_WARNING, "OCIFetch: cannot allocate %d bytes!",outcol->storage_size4);
return OCI_ERROR;
}
-
+
outcol->rlen = outcol->storage_size4;
*bufpp = outcol->data;
}
@@ -1618,10 +1618,10 @@
*rcodep = &outcol->retcode;
*piecep = OCI_ONE_PIECE;
-/*
+ /*
oci8_debug("oci8_define_callback: %s,*bufpp = %x,**alenp = %d,**indpp = %d, **rcodep= %d,
*piecep = %d",
outcol->name,*bufpp,**alenp,**(ub2**)indpp,**rcodep,*piecep);
-*/
+ */
return OCI_CONTINUE;
}
Index: php3/functions/php3_oci8.h
diff -u php3/functions/php3_oci8.h:1.47 php3/functions/php3_oci8.h:1.48
--- php3/functions/php3_oci8.h:1.47 Wed May 12 07:16:47 1999
+++ php3/functions/php3_oci8.h Mon May 17 08:45:04 1999
@@ -173,7 +173,7 @@
#define oci8_module_ptr &oci8_module_entry
#define OCI8_MAX_NAME_LEN 64
-#define OCI8_MAX_DATA_SIZE 2097152 /* two megs */
+#define OCI8_MAX_DATA_SIZE ((64*1024)-1) /* XXX we need piecewise operations!! */
# define OCI8_CONN_TYPE(x) ((x)==OCI8_GLOBAL(php3_oci8_module).le_conn)
# define OCI8_STMT_TYPE(x) ((x)==OCI8_GLOBAL(php3_oci8_module).le_stmt)
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net