CVS update: php3/functions

From: Date: Sat, 06 Mar 1999 19:13:47 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4499@lists.php.net to get a copy of this message
Date: Saturday March 6, 1999 @ 14:13 Author: danny Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv11411/functions Modified Files: ifx.ec php3_ifx.h Log Message: - added function ifx_getsqlca() : gives access to sqlca.sqlerrd[0..5] allows you to retrieve the serial value after an insert. Returns a pseudo_row : $row["sqlerrd1"] is the serial value. - made all internal functions static. Index: php3/functions/ifx.ec diff -c php3/functions/ifx.ec:1.39 php3/functions/ifx.ec:1.40 *** php3/functions/ifx.ec:1.39 Thu Mar 4 14:19:00 1999 --- php3/functions/ifx.ec Sat Mar 6 14:13:47 1999 *************** *** 1,4 **** ! /* +----------------------------------------------------------------------+ | PHP HTML Embedded Scripting Language Version 3.0 | +----------------------------------------------------------------------+ --- 1,4 ---- ! /* +----------------------------------------------------------------------+ | PHP HTML Embedded Scripting Language Version 3.0 | +----------------------------------------------------------------------+ *************** *** 30,36 **** +----------------------------------------------------------------------+ */ ! /* $Id: ifx.ec,v 1.39 1999/03/04 19:19:00 danny Exp $ */ /* ------------------------------------------------------------------- * if you want a function reference : "grep '^\*\*' ifx.ec" will give --- 30,36 ---- +----------------------------------------------------------------------+ */ ! /* $Id: ifx.ec,v 1.40 1999/03/06 19:13:47 danny Exp $ */ /* ------------------------------------------------------------------- * if you want a function reference : "grep '^\*\*' ifx.ec" will give *************** *** 82,88 **** (ifx_query, ifx_prepare, ifx_do, ifx_htmltbl_result, ifx_fetch_row) - minor bug-fixes - Test-Page (informix_blob.php3) updated ! - begin with coding of slob-support(still deactivated, not yet complete: #undef HAVE_IFX_IUS in php3_ifx.h) - ifx_fetch_row returns always a blob-id (contains "NULL"-flag or content from db) (except ifx_textasvarchar, ifx_byteasvarchar set to 1) --- 82,89 ---- (ifx_query, ifx_prepare, ifx_do, ifx_htmltbl_result, ifx_fetch_row) - minor bug-fixes - Test-Page (informix_blob.php3) updated ! - begin with coding of slob-support ! (still deactivated, not yet complete: #undef HAVE_IFX_IUS in php3_ifx.h) - ifx_fetch_row returns always a blob-id (contains "NULL"-flag or content from db) (except ifx_textasvarchar, ifx_byteasvarchar set to 1) *************** *** 102,110 **** - added proto comments Changes 04/03/1999 (danny.heijl@cevi.be) ! - added "SET CONNECTION" statement to ifx_fetch_row() so that you can now fetch rows from different databases ! simultaneously (ifx_query() & ifx_prepare() were already OK). ! */ --- 103,119 ---- - added proto comments Changes 04/03/1999 (danny.heijl@cevi.be) ! - added "SET CONNECTION" statement to ifx_fetch_row() so that you can now ! fetch rows from different databases simultaneously ! (ifx_query() & ifx_prepare() were already OK). ! ! Changes 05/03/1999 (danny.heijl@cevi.be) ! - made all sqlerrd[] fields of sqlca structure available ! with ifx_getsqlca($query_id) in a pseudo-row after a ! prepare (select statements) or insert/update (non-select statements). ! gives access to affected rows and serial insert values ! - made all internal functions static ! */ *************** *** 185,190 **** --- 194,200 ---- {"ifx_htmltbl_result", php3_ifx_htmltbl_result, NULL}, {"ifx_fieldtypes", php3_ifx_fieldtypes, NULL}, {"ifx_fieldproperties",php3_ifx_fieldproperties, NULL}, + {"ifx_getsqlca", php3_ifx_getsqlca, NULL}, {"ifx_create_blob", php3_ifx_create_blob, NULL}, {"ifx_free_blob", php3_ifx_free_blob, NULL}, *************** *** 962,967 **** --- 972,979 ---- int locind; int ctype; int affected_rows; + long sqlerrd[6]; + int e; int query_type; int cursoryproc; *************** *** 1015,1021 **** --- 1027,1036 ---- ifx_error(ifx)); RETURN_FALSE; } + affected_rows = sqlca.sqlerrd[0]; /* save estimated affected rows */ + for (e = 0; e < 6; e++) sqlerrd[e] = sqlca.sqlerrd[e]; + EXEC SQL ALLOCATE DESCRIPTOR :descrpid WITH MAX 256; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; *************** *** 1152,1157 **** --- 1167,1173 ---- RETURN_FALSE; } Ifx_Result->affected_rows = sqlca.sqlerrd[2]; /* really affected */ + for (e = 0; e < 6; e++) Ifx_Result->sqlerrd[e] = sqlca.sqlerrd[e]; } else { /* ## ** SELECT-STATEMENT *************** *** 1180,1186 **** ! Ifx_Result->affected_rows = affected_rows; /* saved estimated */ EXEC SQL GET DESCRIPTOR :descrpid :fieldcount = COUNT; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; --- 1196,1204 ---- ! Ifx_Result->affected_rows = affected_rows; /* saved estimated from prepare */ ! for (e = 0; e < 6; e++) Ifx_Result->sqlerrd[e] = sqlerrd[e]; ! EXEC SQL GET DESCRIPTOR :descrpid :fieldcount = COUNT; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; *************** *** 1328,1333 **** --- 1346,1353 ---- char *char_tmp; long len; int indicator; + long sqlerrd[6]; + int e; $ifdef HAVE_IFX_IUS; fixed binary 'blob' ifx_lo_t *slocator; *************** *** 1394,1399 **** --- 1414,1420 ---- RETURN_FALSE; } affected_rows = sqlca.sqlerrd[0]; /* save estimated affected rows */ + for (e = 0; e < 6; e++) sqlerrd[e] = sqlca.sqlerrd[e]; EXEC SQL ALLOCATE DESCRIPTOR :descrpid WITH MAX 256; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; *************** *** 1515,1521 **** _php3_hash_move_forward(pblobidarr->value.ht); } /* while */ } /* if paramquery */ ! Ifx_Result->affected_rows = affected_rows; /* saved estimated */ } else { /* ## ** SELECT-STATEMENT --- 1536,1543 ---- _php3_hash_move_forward(pblobidarr->value.ht); } /* while */ } /* if paramquery */ ! Ifx_Result->affected_rows = affected_rows; /* saved estimated from prepare */ ! for (e = 0; e < 6; e++) Ifx_Result->sqlerrd[e] = sqlerrd[e]; } else { /* ## ** SELECT-STATEMENT *************** *** 1544,1550 **** strcpy(Ifx_Result->cursorid, cursorid); Ifx_Result->iscursory = 1; ! Ifx_Result->affected_rows = affected_rows; /* saved estimated */ EXEC SQL GET DESCRIPTOR :descrpid :fieldcount = COUNT; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; --- 1566,1573 ---- strcpy(Ifx_Result->cursorid, cursorid); Ifx_Result->iscursory = 1; ! Ifx_Result->affected_rows = affected_rows; /* saved estimated from prepare */ ! for (e = 0; e < 6; e++) Ifx_Result->sqlerrd[e] = sqlerrd[e]; EXEC SQL GET DESCRIPTOR :descrpid :fieldcount = COUNT; if (ifx_check() < 0) { Informix_GLOBAL(php3_ifx_module).sv_sqlcode = SQLCODE; *************** *** 1600,1605 **** --- 1623,1631 ---- int i; /* field index */ short fieldtype; loc_t *locator; + + int e; + long sqlerrd[6]; $ifdef HAVE_IFX_IUS; fixed binary 'blob' ifx_lo_t *slocator; *************** *** 1670,1675 **** --- 1696,1702 ---- RETURN_FALSE; } Ifx_Result->affected_rows = sqlca.sqlerrd[2]; /* really affected */ + for (e = 0; e < 6; e++) Ifx_Result->sqlerrd[e] = sqlca.sqlerrd[e]; } else { /* open cursor */ if (Ifx_Result->isscroll) if (Ifx_Result->ishold) *************** *** 3154,3159 **** --- 3181,3240 ---- } /* }}} */ + + /* -------------------------------------------------------------- + ** int ifx_getsqlca(int $resultid) + ** + ** returns the sqlerrd[] fields of the sqlca struct for query $resultid + ** following the prepare (select) or execute immediate (insert/update/execute procedure) + ** + ** --------------------------------------------------------------- + */ + + /* {{{ proto int ifx_getsqlca(int $resultid) + returns the sqlerrd[] fields of the sqlca struct for query $resultid */ + void php3_ifx_getsqlca(INTERNAL_FUNCTION_PARAMETERS) + { + pval *result; + IFX_RES *Ifx_Result; + + int type; + char fieldname[16]; + int e; + + Informix_TLS_VARS; + + if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &result)==FAILURE) { + WRONG_PARAM_COUNT; + } + + Informix_GLOBAL(php3_ifx_module).sv_sqlcode = 0; + + convert_to_long(result); + Ifx_Result = (IFX_RES *) php3_list_find(result->value.lval,&type); + + if (type!=Informix_GLOBAL(php3_ifx_module).le_result) { + php3_error(E_WARNING,"%d is not a Informix result index", + result->value.lval); + RETURN_FALSE; + } + + /* create pseudo-row array to return */ + if (array_init(return_value)==FAILURE) { + RETURN_FALSE; + } + /* fill array with 6 fields sqlerrd0 .. sqlerrd5 */ + /* each ESQLC call saves these sqlca values */ + for (e = 0; e < 6; e++) { + sprintf(fieldname,"sqlerrd%d", e); + add_assoc_long(return_value, fieldname, Ifx_Result->sqlerrd[e]); + } + + } + /* }}} */ + + + /* ---------------------------------------------------------------------- ** int ifx_num_fields(int $resultid) ** *************** *** 3295,3301 **** * return -1 on error otherwise the type: TYPE_BLTEXT, TYPE_BLBYTE, TYPE_SLOB * ---------------------------------------------------------------------- */ ! long php3_intifx_getType(long id, HashTable *list) { IFX_IDRES *Ifx_res; int type; --- 3376,3382 ---- * return -1 on error otherwise the type: TYPE_BLTEXT, TYPE_BLBYTE, TYPE_SLOB * ---------------------------------------------------------------------- */ ! static long php3_intifx_getType(long id, HashTable *list) { IFX_IDRES *Ifx_res; int type; *************** *** 3366,3372 **** * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifx_create_blob(long type, long mode, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_blob; --- 3447,3453 ---- * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifx_create_blob(long type, long mode, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_blob; *************** *** 3469,3475 **** * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifx_copy_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob, *Ifx_blob_orig; loc_t *locator, *locator_orig; int type; --- 3550,3556 ---- * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifx_copy_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob, *Ifx_blob_orig; loc_t *locator, *locator_orig; int type; *************** *** 3572,3578 **** * FREES BYTE-MEMORY WITH EFREE() * ---------------------------------------------------------------------- */ ! long php3_intifx_free_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; --- 3653,3659 ---- * FREES BYTE-MEMORY WITH EFREE() * ---------------------------------------------------------------------- */ ! static long php3_intifx_free_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; *************** *** 3614,3620 **** * use this for freeing blob-source after select (in ifx_free_result) * ---------------------------------------------------------------------- */ ! long php3_intifx2_free_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; --- 3695,3701 ---- * use this for freeing blob-source after select (in ifx_free_result) * ---------------------------------------------------------------------- */ ! static long php3_intifx2_free_blob(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; *************** *** 3683,3689 **** * returns the pointer to the content in char** content and the amount of content in bytes * ---------------------------------------------------------------------- */ ! long php3_intifx_get_blob(long bid, HashTable *list, char** content) { IFX_IDRES *Ifx_blob; int type; --- 3764,3770 ---- * returns the pointer to the content in char** content and the amount of content in bytes * ---------------------------------------------------------------------- */ ! static long php3_intifx_get_blob(long bid, HashTable *list, char** content) { IFX_IDRES *Ifx_blob; int type; *************** *** 3713,3719 **** * return NULL on error or the pointer to the locator-structur * ---------------------------------------------------------------------- */ ! loc_t *php3_intifx_get_blobloc(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; --- 3794,3800 ---- * return NULL on error or the pointer to the locator-structur * ---------------------------------------------------------------------- */ ! static loc_t *php3_intifx_get_blobloc(long bid, HashTable *list) { IFX_IDRES *Ifx_blob; int type; *************** *** 3776,3782 **** * return nothing * ---------------------------------------------------------------------- */ ! long php3_intifx_update_blob(long bid, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_blob; int type; --- 3857,3863 ---- * return nothing * ---------------------------------------------------------------------- */ ! static long php3_intifx_update_blob(long bid, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_blob; int type; *************** *** 3836,3842 **** */ ! char* php3_intifx_create_tmpfile(long bid) { char filename[10]; char *blobdir; char *blobfile; --- 3917,3923 ---- */ ! static char* php3_intifx_create_tmpfile(long bid) { char filename[10]; char *blobdir; char *blobfile; *************** *** 3975,3981 **** * return "" or "NULL" * ---------------------------------------------------------------------- */ ! char* php3_intifx_null() { char* tmp; if(Informix_GLOBAL(php3_ifx_module).nullformat==0) { --- 4056,4062 ---- * return "" or "NULL" * ---------------------------------------------------------------------- */ ! static char* php3_intifx_null() { char* tmp; if(Informix_GLOBAL(php3_ifx_module).nullformat==0) { *************** *** 4040,4046 **** * return -1 on error otherwise the new char-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifx_create_char(char* param, long len, HashTable *list) { IFX_IDRES *Ifx_char; --- 4121,4127 ---- * return -1 on error otherwise the new char-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifx_create_char(char* param, long len, HashTable *list) { IFX_IDRES *Ifx_char; *************** *** 4112,4118 **** * returns the pointer to the content in char** content and the amount of content in bytes * ---------------------------------------------------------------------- */ ! long php3_intifx_get_char(long bid, HashTable *list, char** content) { IFX_IDRES *Ifx_char; int type; --- 4193,4199 ---- * returns the pointer to the content in char** content and the amount of content in bytes * ---------------------------------------------------------------------- */ ! static long php3_intifx_get_char(long bid, HashTable *list, char** content) { IFX_IDRES *Ifx_char; int type; *************** *** 4166,4172 **** * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! long php3_intifx_free_char(long bid, HashTable *list) { IFX_IDRES *Ifx_char; int type; --- 4247,4253 ---- * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! static long php3_intifx_free_char(long bid, HashTable *list) { IFX_IDRES *Ifx_char; int type; *************** *** 4233,4239 **** * return nothing * ---------------------------------------------------------------------- */ ! long php3_intifx_update_char(long bid, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_char; int type; --- 4314,4320 ---- * return nothing * ---------------------------------------------------------------------- */ ! static long php3_intifx_update_char(long bid, char* param, long len, HashTable *list) { IFX_IDRES *Ifx_char; int type; *************** *** 4359,4365 **** * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifxus_create_slob(long create_mode, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; --- 4440,4446 ---- * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifxus_create_slob(long create_mode, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; *************** *** 4427,4433 **** * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! long php3_intifxus_free_slob(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int type; --- 4508,4514 ---- * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! static long php3_intifxus_free_slob(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int type; *************** *** 4493,4499 **** * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! long php3_intifxus_close_slob(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int type; --- 4574,4580 ---- * return -1 on error otherwise 0 * ---------------------------------------------------------------------- */ ! static long php3_intifxus_close_slob(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int type; *************** *** 4576,4582 **** * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifxus_open_slob(long bid, long create_mode, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; int type; --- 4657,4663 ---- * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifxus_open_slob(long bid, long create_mode, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; int type; *************** *** 4618,4624 **** * return -1 on error otherwise the new slob-Object-id * ---------------------------------------------------------------------- */ ! long php3_intifxus_new_slob(HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; --- 4699,4705 ---- * return -1 on error otherwise the new slob-Object-id * ---------------------------------------------------------------------- */ ! static long php3_intifxus_new_slob(HashTable *list) { IFX_IDRES *Ifx_slob; int errcode; *************** *** 4646,4652 **** * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! ifx_lo_t *php3_intifxus_get_slobloc(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode, type; --- 4727,4733 ---- * return -1 on error otherwise the new Blob-Object-id * ---------------------------------------------------------------------- */ ! static ifx_lo_t *php3_intifxus_get_slobloc(long bid, HashTable *list) { IFX_IDRES *Ifx_slob; int errcode, type; Index: php3/functions/php3_ifx.h diff -c php3/functions/php3_ifx.h:1.17 php3/functions/php3_ifx.h:1.18 *** php3/functions/php3_ifx.h:1.17 Fri Jan 1 12:59:15 1999 --- php3/functions/php3_ifx.h Sat Mar 6 14:13:47 1999 *************** *** 30,36 **** +----------------------------------------------------------------------+ */ ! /* $Id: php3_ifx.h,v 1.17 1999/01/01 17:59:15 zeev Exp $ */ #ifndef _PHP3_IFX_H #define _PHP3_IFX_H --- 30,36 ---- +----------------------------------------------------------------------+ */ ! /* $Id: php3_ifx.h,v 1.18 1999/03/06 19:13:47 danny Exp $ */ #ifndef _PHP3_IFX_H #define _PHP3_IFX_H *************** *** 73,120 **** extern void php3_ifx_htmltbl_result(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_fieldtypes(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_fieldproperties(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_getType(long id, HashTable *list); extern void php3_ifx_create_blob(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_create_blob(long type, long mode, char* param, long len, HashTable *list); extern void php3_ifx_free_blob(INTERNAL_FUNCTION_PARAMETERS) ; ! long php3_intifx_free_blob(long id, HashTable *list); ! long php3_intifx2_free_blob(long id, HashTable *list); extern void php3_ifx_get_blob(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_get_blob(long bid, HashTable *list, char** content); extern void php3_ifx_update_blob(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_update_blob(long bid, char* param, long len, HashTable *list); ! loc_t *php3_intifx_get_blobloc(long bid, HashTable *list); ! char* php3_intifx_create_tmpfile(long bid); extern void php3_ifx_blobinfile_mode(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_copy_blob(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_copy_blob(long bid, HashTable *list); extern void php3_ifx_textasvarchar(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_byteasvarchar(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_nullformat(INTERNAL_FUNCTION_PARAMETERS); ! char* php3_intifx_null(); extern void php3_ifx_create_char(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_create_char(char* param, long len, HashTable *list); extern void php3_ifx_free_char(INTERNAL_FUNCTION_PARAMETERS) ; ! long php3_intifx_free_char(long id, HashTable *list); extern void php3_ifx_update_char(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_update_char(long bid, char* param, long len, HashTable *list); extern void php3_ifx_get_char(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifx_get_char(long bid, HashTable *list, char** content); #if HAVE_IFX_IUS extern void php3_ifxus_create_slob(INTERNAL_FUNCTION_PARAMETERS); ! long php3_intifxus_create_slob(long create_mode, HashTable *list); extern void php3_ifxus_free_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! long php3_intifxus_free_slob(long bid, HashTable *list); extern void php3_ifxus_close_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! long php3_intifxus_close_slob(long bid, HashTable *list); extern void php3_ifxus_open_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! long php3_intifxus_open_slob(long bid, long create_mode, HashTable *list); ! long php3_intifxus_new_slob(HashTable *list); ! ifx_lo_t *php3_intifxus_get_slobloc(long bid, HashTable *list); extern void php3_ifxus_read_slob(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifxus_write_slob(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifxus_seek_slob(INTERNAL_FUNCTION_PARAMETERS); --- 73,121 ---- extern void php3_ifx_htmltbl_result(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_fieldtypes(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_fieldproperties(INTERNAL_FUNCTION_PARAMETERS); + extern void php3_ifx_getsqlca(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_getType(long id, HashTable *list); extern void php3_ifx_create_blob(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_create_blob(long type, long mode, char* param, long len, HashTable *list); extern void php3_ifx_free_blob(INTERNAL_FUNCTION_PARAMETERS) ; ! static long php3_intifx_free_blob(long id, HashTable *list); ! static long php3_intifx2_free_blob(long id, HashTable *list); extern void php3_ifx_get_blob(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_get_blob(long bid, HashTable *list, char** content); extern void php3_ifx_update_blob(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_update_blob(long bid, char* param, long len, HashTable *list); ! static loc_t *php3_intifx_get_blobloc(long bid, HashTable *list); ! static char* php3_intifx_create_tmpfile(long bid); extern void php3_ifx_blobinfile_mode(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_copy_blob(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_copy_blob(long bid, HashTable *list); extern void php3_ifx_textasvarchar(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_byteasvarchar(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifx_nullformat(INTERNAL_FUNCTION_PARAMETERS); ! static char* php3_intifx_null(); extern void php3_ifx_create_char(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_create_char(char* param, long len, HashTable *list); extern void php3_ifx_free_char(INTERNAL_FUNCTION_PARAMETERS) ; ! static long php3_intifx_free_char(long id, HashTable *list); extern void php3_ifx_update_char(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_update_char(long bid, char* param, long len, HashTable *list); extern void php3_ifx_get_char(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifx_get_char(long bid, HashTable *list, char** content); #if HAVE_IFX_IUS extern void php3_ifxus_create_slob(INTERNAL_FUNCTION_PARAMETERS); ! static long php3_intifxus_create_slob(long create_mode, HashTable *list); extern void php3_ifxus_free_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! static long php3_intifxus_free_slob(long bid, HashTable *list); extern void php3_ifxus_close_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! static long php3_intifxus_close_slob(long bid, HashTable *list); extern void php3_ifxus_open_slob(INTERNAL_FUNCTION_PARAMETERS) ; ! static long php3_intifxus_open_slob(long bid, long create_mode, HashTable *list); ! static long php3_intifxus_new_slob(HashTable *list); ! static ifx_lo_t *php3_intifxus_get_slobloc(long bid, HashTable *list); extern void php3_ifxus_read_slob(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifxus_write_slob(INTERNAL_FUNCTION_PARAMETERS); extern void php3_ifxus_seek_slob(INTERNAL_FUNCTION_PARAMETERS); *************** *** 153,158 **** --- 154,160 ---- int numcols; int rowid; int affected_rows; + long sqlerrd[6]; int res_id[MAX_RESID]; } IFX_RES; -- 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 (#4499) next »