From: Felipe Pena Date: Wed, 4 Feb 2009 16:40:13 +0000 (+0000) Subject: - Fixed bug #47297 (pdo_033.phpt fails on PgSQL) X-Git-Tag: php-5.4.0alpha1~191^2~4330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2e40edc0a1f678abc6ea95693f25ededf4ff0a5;p=php - Fixed bug #47297 (pdo_033.phpt fails on PgSQL) Patch by matteo at beccati dot com --- 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');