|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-20 14:39 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ The mysqli_fetch_fields dosen't take the correct field type for the ENUM and SET type. Reproduce code: --------------- Create a table with a ENUM type with value like 'True', 'False' and default value to True. do : $finfo = mysqli_fetch_field($result) you will get : $finfo->type = 254 So, a STRING. - MYSQLI_TYPE_STRING and with no default value. Same thing for the set type. Expected result: ---------------- The $finfo->type should have 247 (MYSQLI_TYPE_ENUM) as value. or 248 (MYSQLI_TYPE_SET) as value for a SET type Actual result: -------------- array(0) { }