ID: 41241 Updated by: [EMAIL PROTECTED] Reported By: develar at gmail dot com Status: Open -Bug Type: PDO related +Bug Type: Feature/Change Request Operating System: Windows XP SP2 PHP Version: 5.2.1 New Comment:
Reclassified as feature request. Previous Comments: ------------------------------------------------------------------------ [2007-04-30 14:31:05] develar at gmail dot com <?php $Pdo = new PDO('pgsql:host=localhost port=5432 dbname=postgres user=postgres password=password'); var_export($Pdo->query('select proargnames from pg_catalog.pg_proc order by proargnames limit 1')->fetchAll(PDO::FETCH_ASSOC)); ?> actual: array ( 0 => array ( 'proargnames' => '{"",x,n}', ), ) expected: proargnames is array, but not string array ( 0 => array ( 'proargnames' => array ( 0 => '', 1 => 'x', 2 => 'n', ), ), ) ------------------------------------------------------------------------ [2007-04-30 13:25:40] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Try with a short reproduce code if you're unable to explain your problem in English. ------------------------------------------------------------------------ [2007-04-30 13:20:08] develar at gmail dot com Pdo (pdo_pgsql) supports SQL 2003 T031 - BOOLEAN data type. If I select value of a field, it will be returned with type BOOL. I ask, that also was supported SQL 2003 S091 - ARRAY data type. If I select proargnames with type text[], I expect, that PDO will return to me array, instead of string. ------------------------------------------------------------------------ [2007-04-30 13:08:34] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2007-04-30 13:06:53] develar at gmail dot com "Actual result" and "Expected result" reverse, excuse me :). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41241 -- Edit this bug report at http://bugs.php.net/?id=41241&edit=1