diff options
| author | Felipe Pena <felipe@php.net> | 2009-02-04 16:41:18 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-02-04 16:41:18 +0000 |
| commit | 4cf377704bcf9df92f8bea0f4dbfd53d91376afb (patch) | |
| tree | 7e23cd049e13d0f74f5ab14906a11599cb448bc9 | |
| parent | c4a9c79e287af898f59ed133a4a67e688c0f9569 (diff) | |
| download | php-git-4cf377704bcf9df92f8bea0f4dbfd53d91376afb.tar.gz | |
- MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
| -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'); |
