From: Felipe Pena Date: Wed, 4 Feb 2009 16:40:56 +0000 (+0000) Subject: - MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL) X-Git-Tag: RELEASE_1_3_5~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d33be91e7253cabba71fc172fe0163aa803b3d1a;p=php - MFH: 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');