#35536 [Opn->Fbk]: mysql_field_type returns unknown for INT(11) columns

From: Date: Sat, 03 Dec 2005 22:08:05 +0000
Subject: #35536 [Opn->Fbk]: mysql_field_type returns unknown for INT(11) columns
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89681@lists.php.net to get a copy of this message
 ID:               35536
 Updated by:       tony2001@php.net
 Reported By:      nevis2us at infoline dot su
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Linux Gentoo
 PHP Version:      4.4.1
 New Comment:

Works perfectly fine here.
Please check which mysqlclient libs your PHP uses: they has to be of
the same version as the server.


Previous Comments:
------------------------------------------------------------------------

[2005-12-03 22:33:58] nevis2us at infoline dot su

Description:
------------
mysql_field_type returns 'unknown' for INT(11) columns
in MySQL 5.0.16 Same results with PHP 5.0.5
No problems with MySQL 4.1.15
Also works for decimal types in 5.0


Reproduce code:
---------------
Call mysql_field_type for an INT column in MySQL 5.0.16


Expected result:
----------------
Should return 'int'


Actual result:
--------------
'unknown'



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35536&edit=1


Thread (14 messages)

« previous php.bugs (#89681) next »