php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zac at slac dot stanford dot edu
New email:
PHP Version: OS:

 

 [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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 13:56 UTC] 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-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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 14:01:37 2025 UTC