cvs: php-src /ext/pdo/tests pdo_033.phpt
| From: | Felipe Pena | Date: | Wed, 04 Feb 2009 16:40:13 +0000 |
| Subject: | cvs: php-src /ext/pdo/tests pdo_033.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56096@lists.php.net to get a copy of this message | ||
felipe Wed Feb 4 16:40:13 2009 UTC
Modified files:
/php-src/ext/pdo/tests pdo_033.phpt
Log:
- Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/pdo_033.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/pdo/tests/pdo_033.phpt
diff -u php-src/ext/pdo/tests/pdo_033.phpt:1.1 php-src/ext/pdo/tests/pdo_033.phpt:1.2
--- php-src/ext/pdo/tests/pdo_033.phpt:1.1 Mon Jul 10 14:05:46 2006
+++ php-src/ext/pdo/tests/pdo_033.phpt Wed Feb 4 16:40:13 2009
@@ -18,7 +18,9 @@
$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');