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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC