From 2d16ed7706bfa8f7f031a4ba8b71d350c307e697 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 10 Sep 2005 19:27:29 +0000 Subject: [PATCH] Add test for this bug report; can't repeat the problem. --- ext/pdo_mysql/tests/pecl_bug_5200.phpt | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ext/pdo_mysql/tests/pecl_bug_5200.phpt 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] => +) -- 2.50.1