|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-24 20:22 UTC] wez@php.net
[2005-08-25 10:02 UTC] amue63 at t-online dot de
[2005-09-10 15:27 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 15 16:00:01 2026 UTC |
Description: ------------ I try to get meta information on a table in a mysql db. the table contains a column named "Phase" that is of type enum. For columns of type "enum" the query below always returns the first 40 characters describing the columntype correctly however all following characters are random. Reproduce code: --------------- $select = $db->query('DESCRIBE Study Phase',PDO_FETCH_ASSOC); foreach ($select as $row) { print_r($row); } Expected result: ---------------- Array ( [Field] => Phase [Type] => enum('please_select','I','II','IIa','IIb','III','IV') [Null] => Ynf [Key] => [Default] => [Extra] => ) Actual result: -------------- Array ( [Field] => Phase [Type] => enum('please_select','I','II','IIa','IIb9{some random output} [Null] => Ynf [Key] => [Default] => [Extra] => )