|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 16:01:27 2024 UTC