1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00

- 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:13 +00:00
parent c7d8074041
commit d2e40edc0a

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