diff options
author | Felipe Pena <felipe@php.net> | 2009-02-04 16:40:56 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-02-04 16:40:56 +0000 |
commit | d33be91e7253cabba71fc172fe0163aa803b3d1a (patch) | |
tree | 170fe3e6a1f8de1aa72124f736e745041cf04d1c /ext/pdo | |
parent | 16bb7d16efffa99d7bd406f0e000350db6063e99 (diff) | |
download | php-git-d33be91e7253cabba71fc172fe0163aa803b3d1a.tar.gz |
- MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/tests/pdo_033.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
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'); |