CVS update: php3/functions

From: Date: Sun, 20 Sep 1998 19:07:31 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-1302@lists.php.net to get a copy of this message
Date: Sunday September 20, 1998 @ 15:07 Author: danny Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv11720/functions Modified Files: ifx.ec Log Message: more cosmetic changes Index: php3/functions/ifx.ec diff -c php3/functions/ifx.ec:1.26 php3/functions/ifx.ec:1.27 *** php3/functions/ifx.ec:1.26 Sun Sep 20 07:39:04 1998 --- php3/functions/ifx.ec Sun Sep 20 15:07:30 1998 *************** *** 874,880 **** ** executes query $query on connection $connid ** for select queries a cursor is declared and opened ** non-select queries are "execute immediate" ! ** select queries accept an optional cursortype param: IFX_SCROLL, IFX_HOLD (or'ed mask) ** non-select queries accept an optional "blobarryid" parameter ** blobsupport: mark the blob-column(s) with ? in the insert/update query ** and add a blob-id-array-functionparameter --- 874,881 ---- ** executes query $query on connection $connid ** for select queries a cursor is declared and opened ** non-select queries are "execute immediate" ! ** select queries accept an optional cursortype param: ! ** IFX_SCROLL, IFX_HOLD (or'ed mask) ** non-select queries accept an optional "blobarryid" parameter ** blobsupport: mark the blob-column(s) with ? in the insert/update query ** and add a blob-id-array-functionparameter *************** *** 2389,2395 **** php3_printf("<td>(BYTE)</td>"); break; default : ! sprintf(string_data,"ESQL/C : %s : unsupported field type[%d]", fieldname, fieldleng); php3_printf("<td>%s</td>", string_data); --- 2390,2397 ---- php3_printf("<td>(BYTE)</td>"); break; default : ! sprintf(string_data, ! "ESQL/C : %s : unsupported field type[%d]", fieldname, fieldleng); php3_printf("<td>%s</td>", string_data); *************** *** 3165,3171 **** locator->loc_loctype=LOCMEMORY; locator->loc_mflags=0; locator->loc_oflags=0; ! } else { char *filename; if((filename=emalloc(strlen(locator_orig->loc_fname)+1))==NULL) { --- 3167,3173 ---- locator->loc_loctype=LOCMEMORY; locator->loc_mflags=0; locator->loc_oflags=0; ! } else { /* BL_INFILE */ char *filename; if((filename=emalloc(strlen(locator_orig->loc_fname)+1))==NULL) { *************** *** 3230,3241 **** bid); return -1; } ! if(Ifx_blob->mode==0) { if(Ifx_blob->blob_data.loc_buffer==NULL || Ifx_blob->blob_data.loc_size<=0) {;} else { efree(Ifx_blob->blob_data.loc_buffer); } ! } else { if(Ifx_blob->blob_data.loc_fname!=NULL) { efree(Ifx_blob->blob_data.loc_fname); } --- 3232,3243 ---- bid); return -1; } ! if(Ifx_blob->mode==BL_INMEM) { if(Ifx_blob->blob_data.loc_buffer==NULL || Ifx_blob->blob_data.loc_size<=0) {;} else { efree(Ifx_blob->blob_data.loc_buffer); } ! } else { /* BL_INFILE */ if(Ifx_blob->blob_data.loc_fname!=NULL) { efree(Ifx_blob->blob_data.loc_fname); } *************** *** 3272,3278 **** bid); return -1; } ! if(Ifx_blob->mode==0) { if(Ifx_blob->blob_data.loc_buffer==NULL || Ifx_blob->blob_data.loc_size<=0) {;} else { free(Ifx_blob->blob_data.loc_buffer); --- 3274,3280 ---- bid); return -1; } ! if(Ifx_blob->mode==BL_INMEM) { if(Ifx_blob->blob_data.loc_buffer==NULL || Ifx_blob->blob_data.loc_size<=0) {;} else { free(Ifx_blob->blob_data.loc_buffer); *************** *** 3338,3344 **** return -1; } ! if(Ifx_blob->mode==0) { *content=Ifx_blob->blob_data.loc_buffer; return Ifx_blob->blob_data.loc_size; } --- 3340,3346 ---- return -1; } ! if(Ifx_blob->mode==BL_INMEM) { *content=Ifx_blob->blob_data.loc_buffer; return Ifx_blob->blob_data.loc_size; } *************** *** 3394,3400 **** convert_to_long(pbid); convert_to_string(pparam); ! ret=php3_intifx_update_blob(pbid->value.lval,pparam->value.str.val,pparam->value.str.len,list); if(ret<0) { RETURN_FALSE; } --- 3396,3405 ---- convert_to_long(pbid); convert_to_string(pparam); ! ret=php3_intifx_update_blob(pbid->value.lval, ! pparam->value.str.val, ! pparam->value.str.len, ! list); if(ret<0) { RETURN_FALSE; } *************** *** 3425,3431 **** return -1; } ! if(Ifx_blob->mode==0) { char *content; if(Ifx_blob->blob_data.loc_buffer!=NULL) --- 3430,3436 ---- return -1; } ! if(Ifx_blob->mode==BL_INMEM) { char *content; if(Ifx_blob->blob_data.loc_buffer!=NULL) -- 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 (#1302) next »