php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13592 mysql_field_flags returns nothing for "SET" string type
Submitted: 2001-10-07 22:21 UTC Modified: 2001-10-08 02:35 UTC
From: wchu010 at cs dot auckland dot ac dot nz Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-10-07 22:21 UTC] wchu010 at cs dot auckland dot ac dot nz
Calls to mysql_field_flags() with MySQL "SET" string type (see MySQL manual 7.3.4.4), did not return anything.  "SET" is similar to "ENUM" in that both are a sub-type of "STRING", so a call to mysql_field_type() always returns "string".  

However in order to tell the difference between regular STRING, ENUM and SET it is neccessary to call mysql_field_flags() to get the details.  eg For "ENUM", mysql_field_flags returns "enum".  But not for "SET".

(The MySQL version I am using is 3.23.42)

Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-08 02:35 UTC] derick@php.net
Fixed in CVS, thanks Markus.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 19:01:34 2024 UTC