CVS update: php3/functions
| From: | danny | Date: | Wed, 19 Aug 1998 18:46:16 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-324@lists.php.net to get a copy of this message | ||
Date: Wednesday August 19, 1998 @ 14:46
Author: danny
Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv27699/functions
Modified Files:
ifx.ec
Log Message:
This will make BLOBs work with ODS 7.2
Index: php3/functions/ifx.ec
diff -c php3/functions/ifx.ec:1.11 php3/functions/ifx.ec:1.12
*** php3/functions/ifx.ec:1.11 Tue Aug 18 14:14:25 1998
--- php3/functions/ifx.ec Wed Aug 19 14:46:15 1998
***************
*** 998,1005 ****
Ifx_Result->blob_data[locind] = locator;
++locind;
locator->loc_loctype = LOCMEMORY;
! locator->loc_bufsize = INITIAL_BLOBSIZE - 4;
! locator->loc_buffer = (char *)malloc(INITIAL_BLOBSIZE);
locator->loc_mflags = 0;
locator->loc_oflags = 0;
EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA = :*locator;
--- 998,1005 ----
Ifx_Result->blob_data[locind] = locator;
++locind;
locator->loc_loctype = LOCMEMORY;
! locator->loc_bufsize = -1;
! locator->loc_buffer = NULL;
locator->loc_mflags = 0;
locator->loc_oflags = 0;
EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA = :*locator;
***************
*** 1326,1333 ****
Ifx_Result->blob_data[locind] = locator;
++locind;
locator->loc_loctype = LOCMEMORY;
! locator->loc_bufsize = INITIAL_BLOBSIZE - 4;
! locator->loc_buffer = (char *)malloc(INITIAL_BLOBSIZE);
locator->loc_mflags = 0;
locator->loc_oflags = 0;
EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA = :*locator;
--- 1326,1333 ----
Ifx_Result->blob_data[locind] = locator;
++locind;
locator->loc_loctype = LOCMEMORY;
! locator->loc_bufsize = -1;
! locator->loc_buffer = NULL;
locator->loc_mflags = 0;
locator->loc_oflags = 0;
EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA = :*locator;
***************
*** 1631,1639 ****
}
switch (ifx_check()) {
case IFX_ERROR:
! /* might have to check for -451 here */
php3_error(E_WARNING,
! "Can not fetch next row on cursor %s (%s)",
ifx_error(ifx),
cursorid);
RETURN_FALSE;
--- 1631,1640 ----
}
switch (ifx_check()) {
case IFX_ERROR:
! if (SQLCODE == -451)
! php3_error(E_WARNING,"blob too large");
php3_error(E_WARNING,
! "Can not fetch row on cursor %s (%s)",
ifx_error(ifx),
cursorid);
RETURN_FALSE;
***************
*** 2201,2207 ****
EXEC SQL FETCH :cursorid USING SQL DESCRIPTOR :descrpid;
switch (ifx_check()) {
case IFX_ERROR:
! /* might have to check for -451 here */
php3_error(E_WARNING,
"Can not fetch next row on cursor %s (%s)",
ifx_error(ifx),
--- 2202,2209 ----
EXEC SQL FETCH :cursorid USING SQL DESCRIPTOR :descrpid;
switch (ifx_check()) {
case IFX_ERROR:
! if (SQLCODE == -451)
! php3_error(E_WARNING,"blob too large");
php3_error(E_WARNING,
"Can not fetch next row on cursor %s (%s)",
ifx_error(ifx),
***************
*** 2370,2376 ****
EXEC SQL FETCH :cursorid USING SQL DESCRIPTOR :descrpid;
switch (ifx_check()) {
case IFX_ERROR:
! /* might have to check for -451 here */
php3_error(E_WARNING,
"Can not fetch next row on cursor %s (%s)",
ifx_error(ifx),
--- 2372,2379 ----
EXEC SQL FETCH :cursorid USING SQL DESCRIPTOR :descrpid;
switch (ifx_check()) {
case IFX_ERROR:
! if (SQLCODE == -451)
! php3_error(E_WARNING,"blob too large");
php3_error(E_WARNING,
"Can not fetch next row on cursor %s (%s)",
ifx_error(ifx),
--
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