From d33be91e7253cabba71fc172fe0163aa803b3d1a Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 4 Feb 2009 16:40:56 +0000 Subject: [PATCH] - MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL) Patch by matteo at beccati dot com --- ext/pdo/tests/pdo_033.phpt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/pdo/tests/pdo_033.phpt b/ext/pdo/tests/pdo_033.phpt index 9739c0e0e3..2cfdb5afa3 100644 --- a/ext/pdo/tests/pdo_033.phpt +++ b/ext/pdo/tests/pdo_033.phpt @@ -18,7 +18,9 @@ $unquoted = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a $quoted = $db->quote($unquoted); -$db->query("CREATE TABLE test (t char(100))"); +$len = strlen($unquoted); + +$db->query("CREATE TABLE test (t char($len))"); $db->query("INSERT INTO test (t) VALUES($quoted)"); $stmt = $db->prepare('SELECT * from test'); -- 2.50.1