|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16399 mysql_field_flags returns "enum" for a mysql "set" column type
Submitted: 2002-04-02 16:50 UTC Modified: 2002-07-09 01:00 UTC
From: zac at slac dot stanford dot edu Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.0.6 OS: irix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
18 + 11 = ?
Subscribe to this entry?

 [2002-04-02 16:50 UTC] zac at slac dot stanford dot 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 13:56 UTC]
Can you try this with the latest version from I checked the souurce and it shows this:

#ifdef ENUM_FLAG
            if (mysql_field->flags&ENUM_FLAG) {
                strcat(buf, "enum ");
#ifdef SET_FLAG
            if (mysql_field->flags&SET_FLAG) {
                strcat(buf, "set ");

So technically it should be ok.

Please report back if you have more information.

 [2002-07-09 01:00 UTC] php-bugs at lists dot php dot net
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".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 08 09:03:39 2023 UTC