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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to