#11407 [Com]: php_mysql.c mysql_field_type returns unknown for tiny int and year types

From: Date: Tue, 20 Jul 2004 15:06:22 +0000
Subject: #11407 [Com]: php_mysql.c mysql_field_type returns unknown for tiny int and year types
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63108@lists.php.net to get a copy of this message
ID: 11407 Comment by: Vaginas-Fingering821 at hotmail dot com Reported By: kraai2 at home dot com Status: Bogus Bug Type: MySQL related Operating System: all PHP Version: 4.0.5 New Comment: <a href=http://www.geocities.com/kvjentgb585/>Vaginas Fingering</a> Previous Comments: ------------------------------------------------------------------------ [2001-06-12 01:59:23] kraai2 at home dot com my installed libs are 3.23.36 When I applied the patch that I created, it correctly reports mysql year types. When I remove the #ifdef from around _TINY in php_mysql.c, it correctly reports mysql tiny int types. It's all working for me, I just wanted to pass the goodies on to others who know more than I. --jim ------------------------------------------------------------------------ [2001-06-12 01:51:42] sniper@php.net This depends on the installed version of your mysql clientlibs. They have to be newer than 3.22 --Jani ------------------------------------------------------------------------ [2001-06-11 16:42:13] kraai2 at home dot com patch for YEAR problem: 1556a1557,1559 case FIELD_TYPE_YEAR: return "year"; break; I don't understand why the tiny int doesn't work, either, the macro's defined, but looks like it's getting lost in the #ifdef clause in php_mysql.c Thanks, --jim ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11407&edit=1

« previous php.bugs (#63108) next »