CVS update: php3/functions

From: Date: Tue, 23 Feb 1999 16:09:39 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4262@lists.php.net to get a copy of this message
Date: Tuesday February 23, 1999 @ 11:09 Author: thies Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv29643/functions Modified Files: oci8.c Log Message: indicator includes the NULL byte for truncated values -> ommit it..... Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.62 php3/functions/oci8.c:1.63 *** php3/functions/oci8.c:1.62 Tue Feb 23 04:11:45 1999 --- php3/functions/oci8.c Tue Feb 23 11:09:38 1999 *************** *** 32,38 **** +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.62 1999/02/23 09:11:45 thies Exp $ */ #if defined(COMPILE_DL) # ifdef THREAD_SAFE --- 32,38 ---- +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.63 1999/02/23 16:09:38 thies Exp $ */ #if defined(COMPILE_DL) # ifdef THREAD_SAFE *************** *** 77,82 **** --- 77,84 ---- * - clean up and documentation * - OCINewContext function. * - there seems to be a bug in OCI where it returns ORA-01406 (value truncated) - whereby it isn't (search for 01406 in the source) + * this seems to happen for NUMBER values only... + * - make OCIInternalDebug accept a mask of flags.... */ /* {{{ thread safety stuff */ *************** *** 764,771 **** } else { switch (column->retcode) { case 1406: /* ORA-01406 XXX truncated value */ ! /* this seems to be a BUG in oracle oci8_debug("%s: truncated column %s", func,column->name); */ ! size = column->indicator; /* when value is truncated indicator contains the lenght */ break; case 0: /* intact value */ --- 766,774 ---- } else { switch (column->retcode) { case 1406: /* ORA-01406 XXX truncated value */ ! /* this seems to be a BUG in oracle */ ! oci8_debug("%s: truncated column %s indicator = %d", func,column->name,column->indicator); ! size = column->indicator - 1; /* when value is truncated indicator contains the lenght */ break; case 0: /* intact value */ *************** *** 1100,1107 **** if ((column->define) && (! column->is_descr)) { pval = column->define->pval; ! if (column->retcode == 1406) { /*XXX ORA-1406 truncated value */ ! pval->value.str.len = column->indicator; /* when value is truncated indicator contains the lenght */ } else { pval->value.str.len = column->rlen; } --- 1103,1111 ---- if ((column->define) && (! column->is_descr)) { pval = column->define->pval; ! if (column->retcode == 1406) { /*XXX ORA-01406 truncated value */ ! oci8_debug("OCIFetch: truncated column %s indicator = %d", func,column->name,column->indicator); ! 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 (#4262) next »