Bug #19237 [Opn->Fbk]: MDB2 fails to see data in mysql table

From: Date: Fri, 02 Mar 2012 16:18:21 +0000
Subject: Bug #19237 [Opn->Fbk]: MDB2 fails to see data in mysql table
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8345@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19237&edit=1 ID: 19237 Updated by: danielc@analysisandsolutions.com Reported By: pear at isc-ltd dot co dot uk Summary: MDB2 fails to see data in mysql table -Status: Open +Status: Feedback Type: Bug Package: MDB2 Operating System: Windows 7 Package Version: 2.4.1 PHP Version: 5.3.9 -Assigned To: +Assigned To: danielc Roadmap Versions: New Comment: -Status: Open +Status: Feedback -Assigned To: +Assigned To: danielc I'm pretty sure was fixed in SVN a while ago. Can you please try it? Previous Comments: ------------------------------------------------------------------------ [2012-03-02 15:56:15] lambik This is what I see when debugging: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, object given in PEAR\MDB2\Driver\mysql.php on line 1163 (after I removed the @ in front of the function) So the $result being passed in to the function, is not a resource. I don't know why not however! ------------------------------------------------------------------------ [2012-03-02 15:09:57] lambik I have the same problem as you, most likely. I can query "select * from table" fine with mysql_query() but I cannot do it with MDB2. There is no error, it just pretends that there are no results. ------------------------------------------------------------------------ [2012-01-22 08:00:32] johnk_uk Apologies: a newbie error confusing patches with attachments. Example code and output is at http://www.isc-ltd.co.uk/pear_19237. ------------------------------------------------------------------------ [2012-01-22 07:40:17] johnk_uk Added #patch bug:19237;patch:example-code;revision:1327218017;. ------------------------------------------------------------------------ [2012-01-22 07:34:14] johnk_uk Description: ------------ Test script uses MDB2 to create database, create table and insert data into table. Table is then queried and no results returned. Native connection is then established and retrieves data as expected. MDB2 succesfully deletes database. Identical behaviour on OS X 10.7.2/PHP 5.3.6. Test script: --------------- Attached Expected result: ---------------- $mdb2->queryAll("SHOW TABLES"); should return "beatles" $mdb2->queryAll("SELECT * FROM beatles"); should return (1, "John"), (2, "Paul", (3, "George"), (4, "Ringo") Actual result: -------------- Both queries return zero rows and do not report an error. Actual output is attached. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19237&edit=1

« previous php.pear.bugs (#8345) next »