PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #5972

require 'DB.php' in generator.php when using multiple databases

Details

Submitted2005-11-15 20:23 UTC
Fromkwinter at sitrack dot com
StatusDuplicate
PackageDB_DataObject
PHP Version4.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:
--------------