[PHP-DEV] CVS update: php3/functions From: nyenyon (php-dev <email protected>)
Date: 08/26/98

Date: Wednesday August 26, 1998 @ 5:26
Author: nyenyon

Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv3734

Modified Files:
        ifx.ec
Log Message:
- minor bug-fix in blobsupport with filename-option on nonselect-queries.

Index: php3/functions/ifx.ec
diff -c php3/functions/ifx.ec:1.13 php3/functions/ifx.ec:1.14
*** php3/functions/ifx.ec:1.13 Sun Aug 23 12:23:06 1998
--- php3/functions/ifx.ec Wed Aug 26 05:26:29 1998
***************
*** 928,934 ****
         for(i=1;i<(ARG_COUNT(ht)-1);i++) {
          convert_to_long(pblobid[i+1]);
          locator=php3_intifx_get_blobloc((int)pblobid[i+1]->value.lval,list);
!
          EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA= :*locator, TYPE=:loc_t_type;
         }
        Ifx_Result->paramquery=1;
--- 928,935 ----
         for(i=1;i<(ARG_COUNT(ht)-1);i++) {
          convert_to_long(pblobid[i+1]);
          locator=php3_intifx_get_blobloc((int)pblobid[i+1]->value.lval,list);
! if(locator->loc_loctype=LOCFNAME)
! locator->loc_oflags=LOC_RONLY;
          EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA= :*locator, TYPE=:loc_t_type;
         }
        Ifx_Result->paramquery=1;
***************
*** 1234,1239 ****
--- 1235,1242 ----
         for(i=1;i<(ARG_COUNT(ht)-1);i++) {
          convert_to_long(pblobid[i+1]);
          locator=php3_intifx_get_blobloc((int)pblobid[i+1]->value.lval,list);
+ if(locator->loc_loctype=LOCFNAME)
+ locator->loc_oflags=LOC_RONLY;
         
          EXEC SQL SET DESCRIPTOR :descrpid VALUE :i DATA= :*locator, TYPE=:loc_t_type;
         } /* for */

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>