1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

- MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)

Patch by matteo at beccati dot com
This commit is contained in:
Felipe Pena
2009-02-04 16:40:56 +00:00
parent 16bb7d16ef
commit d33be91e72

View File

@@ -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');