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 #4323

DB Object Seems to Forget DSN Information

Details

Submitted2005-05-10 22:32 UTC
Fromjda_mule at yahoo dot com
StatusNo Feedback
PackageDB_DataObject
PHP Version4.3.11
OSMac OS 10.4
Roadmaps(Not assigned)

Comments

[2005-05-10 22:32 UTC] jda_mule at yahoo dot com

Description:
------------
I can successfully create a DB object, which connects to the
database and gathers queries successfully.

I then load the entire DB object into a session variable, and
call it later in my application.

When I query using the DB session object, I always get a "DB
Error: no database selected" error message.

Yet, if I do a die(print_r($_SESSION['db'])) the _db and dsn-
>database attributes are correctly set to the name of the
database I am trying to use.