CVS update: php3/functions

From: Date: Sun, 04 Oct 1998 11:27:18 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-1644@lists.php.net to get a copy of this message
Date: Sunday October 4, 1998 @ 7:27 Author: kk Update of /repository/php3/functions In directory asf:/u2/tmp/cvs-serv27286 Modified Files: mysql.c Log Message: Fixes to mysql_fetch_field: Flag values were not returned as 1 when set. Index: php3/functions/mysql.c diff -c php3/functions/mysql.c:1.167 php3/functions/mysql.c:1.168 *** php3/functions/mysql.c:1.167 Tue Sep 29 19:33:38 1998 --- php3/functions/mysql.c Sun Oct 4 07:27:17 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: mysql.c,v 1.167 1998/09/29 23:33:38 shane Exp $ */ /* TODO: --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: mysql.c,v 1.168 1998/10/04 11:27:17 kk Exp $ */ /* TODO: *************** *** 1625,1636 **** add_property_string(return_value, "table",(mysql_field->table?mysql_field->table:empty_string), 1); add_property_string(return_value, "def",(mysql_field->def?mysql_field->def:empty_string), 1); add_property_long(return_value, "max_length",mysql_field->max_length); ! add_property_long(return_value, "not_null",IS_NOT_NULL(mysql_field->flags)); ! add_property_long(return_value, "primary_key",IS_PRI_KEY(mysql_field->flags)); add_property_long(return_value, "multiple_key",(mysql_field->flags&MULTIPLE_KEY_FLAG?1:0)); add_property_long(return_value, "unique_key",(mysql_field->flags&UNIQUE_KEY_FLAG?1:0)); ! add_property_long(return_value, "numeric",IS_NUM(mysql_field->type)); ! add_property_long(return_value, "blob",IS_BLOB(mysql_field->flags)); add_property_string(return_value, "type",php3_mysql_get_field_name(mysql_field->type), 1); add_property_long(return_value, "unsigned",(mysql_field->flags&UNSIGNED_FLAG?1:0)); add_property_long(return_value, "zerofill",(mysql_field->flags&ZEROFILL_FLAG?1:0)); --- 1625,1636 ---- add_property_string(return_value, "table",(mysql_field->table?mysql_field->table:empty_string), 1); add_property_string(return_value, "def",(mysql_field->def?mysql_field->def:empty_string), 1); add_property_long(return_value, "max_length",mysql_field->max_length); ! add_property_long(return_value, "not_null",IS_NOT_NULL(mysql_field->flags)?1:0); ! add_property_long(return_value, "primary_key",IS_PRI_KEY(mysql_field->flags)?1:0); add_property_long(return_value, "multiple_key",(mysql_field->flags&MULTIPLE_KEY_FLAG?1:0)); add_property_long(return_value, "unique_key",(mysql_field->flags&UNIQUE_KEY_FLAG?1:0)); ! add_property_long(return_value, "numeric",IS_NUM(mysql_field->type)?1:0); ! add_property_long(return_value, "blob",IS_BLOB(mysql_field->flags)?1:0); add_property_string(return_value, "type",php3_mysql_get_field_name(mysql_field->type), 1); add_property_long(return_value, "unsigned",(mysql_field->flags&UNSIGNED_FLAG?1:0)); add_property_long(return_value, "zerofill",(mysql_field->flags&ZEROFILL_FLAG?1:0)); -- 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 (#1644) next »