Home » Database » DB_DataObject » Bug #5972
require 'DB.php' in generator.php when using multiple databases
Details
| Submitted | 2005-11-15 20:23 UTC |
|---|---|
| From | kwinter at sitrack dot com |
| Status | Duplicate |
| Package | DB_DataObject |
| PHP Version | 4.4.0 |
| Roadmaps | (Not assigned) |
Comments
[2005-11-15 20:23 UTC] kwinter at sitrack dot com
Description:
------------
Class DB is needed when multiple databases are specified instead of only one database in DB_DataObject configuration ini file.
require_once 'DB.php'; must be at the begining of generator.php file, not inside if (@$options['database']) {...
if DB_DataObject configuration ini file:
;database = commented
database_db1 = mysql://username:password@host/db1
database_db2 = mysql://username:password@host/db2
when you run createTables.php you get this error:
Undefined class name 'db' in generator.php on line 113
Using current release DB_DataObject 1.7.15
Actual result:
--------------