Home » Database » DB » Bug #1142
DB throws conversion error
Details
| Submitted | 2004-04-06 03:30 UTC |
|---|---|
| From | aidan at virtualexplorer dot com dot au |
| Assigned | danielc |
| Status | Duplicate |
| Package | DB |
| PHP Version | 5CVS-2004-04-05 (dev) |
| OS | Win |
| Roadmaps | (Not assigned) |
Comments
[2004-04-06 03:30 UTC] aidan at virtualexplorer dot com dot au
Description:
------------
DB throws an error when doing a getAll query.
Notice: Object of class DB_result could not be converted to integer in E:\www\PEAR\DB\common.php on line 1584
Reproduce code:
---------------
require_once ('DB.php');
$db = DB::connect('mysql://...');
$query = 'SELECT VERSION()';
$data = $db->getAll($query);
print_r ($data);
Expected result:
----------------
Not an error
Actual result:
--------------
Notice: Object of class DB_result could not be converted to integer in E:\www\PEAR\DB\common.php on line 1584 Array ( [0] => Array ( [0] => 4.1.1a-alpha-nt ) )