CVS update: php3/functions

From: Date: Mon, 14 Sep 1998 22:19:51 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-1071@lists.php.net to get a copy of this message
Date: Monday September 14, 1998 @ 18:19 Author: nyenyon Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv25537 Modified Files: ifx.ec php3_ifx.h Log Message: - supports now IUS- serial8,int8,boolean, nchar, nvchar, lvarchar - still incomplete slob-support Index: php3/functions/ifx.ec diff -c php3/functions/ifx.ec:1.16 php3/functions/ifx.ec:1.17 *** php3/functions/ifx.ec:1.16 Sun Sep 13 16:43:26 1998 --- php3/functions/ifx.ec Mon Sep 14 18:19:46 1998 *************** *** 77,82 **** --- 77,87 ---- - 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) + + Changes 14.9.1998 (chc@idgruppe.de) + - supports now IUS- serial8,int8,boolean, nchar, nvchar, lvarchar + - still incomplete slob-support + */ *************** *** 1780,1785 **** --- 1785,1794 ---- int field_ind; /* the field index */ char *field; /* the field data */ + #if HAVE_IFX_IUS + ifx_int8_t int8_var; + #endif + short indicator; int int_data; char *char_data; *************** *** 1995,2000 **** --- 2004,2022 ---- intoasc(&intvl_data, string_data); add_assoc_string(return_value, fieldname, string_data, DUP); break; + + #if HAVE_IFX_IUS + case SQLSERIAL8 : + case SQLINT8 : + EXEC SQL GET DESCRIPTOR :descrpid VALUE :i :int8_var = DATA; + ifx_int8toasc(&int8_var,string_data,200); + add_assoc_string(return_value, fieldname, string_data, DUP); + break; + case SQLNCHAR : + case SQLNVCHAR : + case SQLLVARCHAR: + case SQLBOOL: + #endif case SQLCHAR : case SQLVCHAR : if ((char_data = (char *)emalloc(fieldleng + 1)) == NULL) { *************** *** 2097,2102 **** --- 2119,2128 ---- int fieldleng; /* field length */ char *field; /* the field */ + #if HAVE_IFX_IUS + ifx_int8_t int8_var; + #endif + short indicator; int int_data; char *char_data = NULL; *************** *** 2299,2306 **** intoasc(&intvl_data, string_data); php3_printf("<td>%s</td>", string_data); break; ! case SQLCHAR : ! case SQLVCHAR : if ((char_data = (char *)emalloc(fieldleng + 1)) == NULL) { php3_error(E_WARNING, "Out of memory"); RETURN_FALSE; --- 2325,2342 ---- intoasc(&intvl_data, string_data); php3_printf("<td>%s</td>", string_data); break; ! #if HAVE_IFX_IUS ! case SQLSERIAL8 : ! case SQLINT8 : ! EXEC SQL GET DESCRIPTOR :descrpid VALUE :i :int8_var = DATA; ! ifx_int8toasc(&int8_var,string_data,200); ! php3_printf("<td>%s</td>", string_data); ! break; ! case SQLNCHAR : ! case SQLNVCHAR : ! case SQLLVARCHAR: ! case SQLBOOL: ! #endif if ((char_data = (char *)emalloc(fieldleng + 1)) == NULL) { php3_error(E_WARNING, "Out of memory"); RETURN_FALSE; *************** *** 2553,2561 **** case SQLBYTES : char_data = "SQLBYTES"; break; ! default : ! char_data = "UNKNOWN"; break; } /* switch (fieldtype) */ add_assoc_string(return_value, fieldname, char_data, DUP); --- 2589,2621 ---- case SQLBYTES : char_data = "SQLBYTES"; break; ! #if HAVE_IFX_IUS ! case SQLUDTFIXED : ! char_data = "SQLCLOB"; ! break; ! case SQLBOOL : ! char_data = "SQLBOOL"; ! break; ! case SQLNCHAR : ! char_data = "SQLNCHAR"; break; + case SQLNVCHAR : + char_data = "SQLNVCHAR"; + break; + case SQLINT8 : + char_data = "SQLINT8"; + break; + case SQLSERIAL8 : + char_data = "SQLSERIAL8"; + break; + case SQLLVARCHAR : + char_data = "SQLLVARCHAR"; + break; + #endif + default : + char_data=emalloc(20); + sprintf(char_data,"ESQL/C : %i",fieldtype); + break; } /* switch (fieldtype) */ add_assoc_string(return_value, fieldname, char_data, DUP); *************** *** 2734,2741 **** case SQLBYTES : char_data = "SQLBYTES"; break; default : ! char_data = "UNKNOWN"; break; } /* switch (fieldtype) */ --- 2794,2825 ---- case SQLBYTES : char_data = "SQLBYTES"; break; + #if HAVE_IFX_IUS + case SQLUDTFIXED : + char_data = "SQLCLOB"; + break; + case SQLBOOL : + char_data = "SQLBOOL"; + break; + case SQLNCHAR : + char_data = "SQLNCHAR"; + break; + case SQLNVCHAR : + char_data = "SQLNVCHAR"; + break; + case SQLINT8 : + char_data = "SQLINT8"; + break; + case SQLSERIAL8 : + char_data = "SQLSERIAL8"; + break; + case SQLLVARCHAR : + char_data = "SQLLVARCHAR"; + break; + #endif default : ! char_data=emalloc(20); ! sprintf(char_data,"ESQL/C : %i",fieldtype); break; } /* switch (fieldtype) */ Index: php3/functions/php3_ifx.h diff -c php3/functions/php3_ifx.h:1.8 php3/functions/php3_ifx.h:1.9 *** php3/functions/php3_ifx.h:1.8 Sun Sep 13 16:43:26 1998 --- php3/functions/php3_ifx.h Mon Sep 14 18:19:48 1998 *************** *** 35,41 **** #ifndef _PHP3_IFX_H #define _PHP3_IFX_H - #undef HAVE_IFX_IUS /* deactivated >> incomplete implementation */ #if COMPILE_DL #undef HAVE_IFX --- 35,40 ---- -- 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 (#1071) next »