Home » Database » DB_DataObject » Bug #1703
createTables.php failed to work
Details
| Submitted | 2004-06-22 17:49 UTC |
|---|---|
| From | hschin28 at time dot net dot my |
| Status | Duplicate |
| Package | DB_DataObject |
| PHP Version | 5.0.0RC3 (Release Candidate 3) |
| OS | Fedora Core 2 |
| Roadmaps | (Not assigned) |
Comments
[2004-06-22 17:49 UTC] hschin28 at time dot net dot my
Description:
------------
when trying to run createTables.php on Fedora Core 2 + MySQL 4.0.20 + PHP 5.0RC3, it generates the following error msg:
DB_DataObject_Generator : 0 : CREATING FOR sme
PHP Notice: Trying to get property of non-object in /usr/local/lib/php/DB/mysql.php on line 800
[DB_Error: message="DB Error: insufficient data supplied" code=-20 mode=return level=notice prefix="" info="SHOW TABLES [nativecode=0 **]"]
* No problem on SuSE 9.1 Pro.
[2004-06-22 18:52 UTC] hschin28 at time dot net dot my
I have just solved the problem. What I did was to change DB/mysql.php line #800 to:
if (isset($result->result) && is_object($result)) {
I have no idea why it works on windows and other linux distributions.
[2004-06-23 05:04 UTC] hschin28 at time dot net dot my
it is a string :)