CVS update: php3/functions

From: Date: Mon, 17 May 1999 13:54:50 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5740@lists.php.net to get a copy of this message
Date: Monday May 17, 1999 @ 9:54 Author: thies Update of /repository/php3/functions In directory php:/tmp/cvs-serv24206/functions Modified Files: oci8.c Log Message: LONG columns are currently limited to 64K. Index: php3/functions/oci8.c diff -u php3/functions/oci8.c:1.96 php3/functions/oci8.c:1.97 --- php3/functions/oci8.c:1.96 Mon May 17 08:45:03 1999 +++ php3/functions/oci8.c Mon May 17 09:54:50 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.96 1999/05/17 12:45:03 thies Exp $ */ +/* $Id: oci8.c,v 1.97 1999/05/17 13:54:50 thies Exp $ */ /* TODO list: * @@ -739,7 +739,6 @@ /************************* INTERNAL FUNCTIONS *************************/ /* {{{ oci8_debugcol() */ -#if 0 static void oci8_debugcol(oci8_out_column *column,const char *format,...) { OCI8_TLS_VARS; @@ -762,7 +761,6 @@ } } } -#endif /* }}} */ /* {{{ oci8_debug() */ @@ -938,7 +936,11 @@ /* oci8_debugcol(column,"truncated"); */ - size = column->indicator - 1; /* when value is truncated indicator contains the lenght */ + if (column->rlen <= 0) { + size = 1; /* XXX this is our "oci-bug" */ + } else { + size = column->rlen; + } break; case 0: /* intact value */ @@ -1338,6 +1340,11 @@ /* oci8_debugcol(column,"truncated"); */ + if (column->rlen <= 0) { + pval->value.str.len = 1; /* XXX this is our "oci-bug" */ + } else { + pval->value.str.len = column->rlen; + } pval->value.str.len = column->indicator - 1; /* when value is truncated indicator contains the lenght */ } else { pval->value.str.len = column->rlen; -- 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

« previous php.dev (#5740) next »