Bug #16399 Updated: mysql_field_flags returns "enum" for a mysql "set" column type
| From: | derick@php.net | Date: | Sun, 26 May 2002 17:56:35 +0000 |
| Subject: | Bug #16399 Updated: mysql_field_flags returns "enum" for a mysql "set" column type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8598@lists.php.net to get a copy of this message | ||
ID: 16399
Updated by: derick@php.net
Reported By: zac@slac.stanford.edu
-Status: Open
+Status: Feedback
Bug Type: MySQL related
Operating System: irix
PHP Version: 4.0.6
New Comment:
Can you try this with the latest version from
www.php.net/downloads.php? I checked the souurce and it shows this:
#ifdef ENUM_FLAG
if (mysql_field->flags&ENUM_FLAG) {
strcat(buf, "enum ");
}
#endif
#ifdef SET_FLAG
if (mysql_field->flags&SET_FLAG) {
strcat(buf, "set ");
}
#endif
So technically it should be ok.
Please report back if you have more information.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-04-02 16:50:19] zac@slac.stanford.edu
when using mysql_field_flags to get information
on "enum"erations or "set"s from a MySQL column
you cannot distinguish between them.
Both "enum" and "set" are flagged as "enum" on the
PHP side.
I suggest that the mysql distinction be maintained
on the PHP side.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16399&edit=1