From: Wez Furlong Date: Sat, 10 Sep 2005 19:27:29 +0000 (+0000) Subject: Add test for this bug report; can't repeat the problem. X-Git-Tag: RELEASE_1_0RC1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d16ed7706bfa8f7f031a4ba8b71d350c307e697;p=php Add test for this bug report; can't repeat the problem. --- diff --git a/ext/pdo_mysql/tests/pecl_bug_5200.phpt b/ext/pdo_mysql/tests/pecl_bug_5200.phpt new file mode 100644 index 0000000000..41e41f4c91 --- /dev/null +++ b/ext/pdo_mysql/tests/pecl_bug_5200.phpt @@ -0,0 +1,30 @@ +--TEST-- +PDO MySQL PECL Bug #5200 +--SKIPIF-- + +--FILE-- +exec("CREATE TABLE test (bar INT NOT NULL, phase enum('please_select', 'I', 'II', 'IIa', 'IIb', 'III', 'IV'))"); + +foreach ($db->query('DESCRIBE test phase')->fetchAll(PDO_FETCH_ASSOC) as $row) { + print_r($row); +} + +--EXPECT-- +Array +( + [field] => phase + [type] => enum('please_select','I','II','IIa','IIb','III','IV') + [null] => YES + [key] => + [default] => + [extra] => +)