Bug #16399 Updated: mysql_field_flags returns "enum" for a mysql "set" column type
| From: | php-bugs at lists dot php dot net | Date: | Tue, 09 Jul 2002 05:00:10 +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-13565@lists.php.net to get a copy of this message | ||
ID: 16399
Updated by: php-bugs@lists.php.net
Reported By: zac@slac.stanford.edu
-Status: Feedback
+Status: No Feedback
Bug Type: MySQL related
Operating System: irix
PHP Version: 4.0.6
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-05-26 13:56:34] derick@php.net
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
------------------------------------------------------------------------
[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