php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36296 PDOStatement::getColumnMeta death at client lib pgsql 8.1.0
Submitted: 2006-02-05 18:36 UTC Modified: 2006-02-13 16:51 UTC
From: flaboy dot cn at gmail dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 5.1.2 OS: both windows / linux
Private report: No CVE-ID: None
 [2006-02-05 18:36 UTC] flaboy dot cn at gmail dot com
Description:
------------
PDOStatement::getColumnMeta death at client lib pgsql 8.1.0
both in windows and linux/unix


Reproduce code:
---------------
<?php
$select = $DB->query('SELECT COUNT(*) FROM fruit');
$meta = $select->getColumnMeta(0);
var_dump($meta);
?> 

Expected result:
----------------
array(6) {
  ["native_type"]=>
  string(7) "integer"
  ["flags"]=>
  array(0) {
  }
  ["name"]=>
  string(8) "COUNT(*)"
  ["len"]=>
  int(-1)
  ["precision"]=>
  int(0)
  ["pdo_type"]=>
  int(2)
}


Actual result:
--------------
no 
it's death.

when i change back to pgsql lib 8.0.1
it's running very well

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-05 20:18 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2006-02-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-02-13 16:51 UTC] derick@php.net
Duplicate of #36382.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC