CVS update: php3/functions
| From: | thies | Date: | Mon, 15 Feb 1999 11:28:37 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4099@lists.php.net to get a copy of this message | ||
Date: Monday February 15, 1999 @ 6:28
Author: thies
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv25439/functions
Modified Files:
oci8.c
Log Message:
NULLS in LOB/BFILE are now supported...
Index: php3/functions/oci8.c
diff -c php3/functions/oci8.c:1.44 php3/functions/oci8.c:1.45
*** php3/functions/oci8.c:1.44 Mon Feb 15 05:39:32 1999
--- php3/functions/oci8.c Mon Feb 15 06:28:37 1999
***************
*** 32,38 ****
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.44 1999/02/15 10:39:32 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
--- 32,38 ----
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.45 1999/02/15 11:28:37 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
***************
*** 62,68 ****
* - piecewise operation for longs, lobs etc
* - split the module into an upper (php-callable) and lower (c-callable) layer!
* - make_pval needs some cleanup....
! * - improve the NULL handling for LOBS/BFILES
*/
/* {{{ thread safety stuff */
--- 62,68 ----
* - piecewise operation for longs, lobs etc
* - split the module into an upper (php-callable) and lower (c-callable) layer!
* - make_pval needs some cleanup....
! * - persistend connections
*/
/* {{{ thread safety stuff */
***************
*** 891,899 ****
(dvoid *)&(pdescr->lob),
(sb4)-1,
define_type,
! (dvoid *)0,
(ub2 *)0,
! (ub2 *)0,
OCI_DEFAULT);
break;
--- 891,899 ----
(dvoid *)&(pdescr->lob),
(sb4)-1,
define_type,
! (dvoid *)&outcol->indicator,
(ub2 *)0,
! (ub2 *)&outcol->retcode,
OCI_DEFAULT);
break;
***************
*** 962,980 ****
oci8_fetch(oci8_statement *statement, ub4 nrows, char *func)
{
sword error;
OCI8_TLS_VARS;
error = OCIStmtFetch(statement->pStmt, statement->pError, nrows,
OCI_FETCH_NEXT, OCI_DEFAULT);
! /*
oci8_debug("OCIStmtFetch returned %d", error);
! */
if (error == OCI_NO_DATA) {
return 0;
}
if (error == OCI_SUCCESS_WITH_INFO || error == OCI_SUCCESS) {
return 1;
}
oci8_error(statement->pError, func, error);
return 0;
}
--- 962,983 ----
oci8_fetch(oci8_statement *statement, ub4 nrows, char *func)
{
sword error;
+ text errbuf[512];
+ ub4 errcode = 0;
OCI8_TLS_VARS;
error = OCIStmtFetch(statement->pStmt, statement->pError, nrows,
OCI_FETCH_NEXT, OCI_DEFAULT);
!
oci8_debug("OCIStmtFetch returned %d", error);
!
if (error == OCI_NO_DATA) {
return 0;
}
if (error == OCI_SUCCESS_WITH_INFO || error == OCI_SUCCESS) {
return 1;
}
+
oci8_error(statement->pError, func, error);
return 0;
}
--
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