PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #3594

createTables.php doesn't work for PostgreSQL backend with DB 1.7.0RC1

Details

Submitted2005-02-25 14:44 UTC
Fromgjm at uevora dot pt
Assigneddanielc
StatusClosed
PackageDB
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2005-02-25 14:44 UTC] gjm at uevora dot pt

Description:
------------
After an upgrade of the DB package to 1.7.0RC1, the createTable.php script exits with:

Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL link resource in /usr/share/php/DB/pgsql.php on line 802

After some print_r'ing i've concluded that the PostgreSQL connection is lost somewhere along the way. When it first connects, the DB::connection is something like "Resource id #13" and when it calls DB_DataObject::_createTableList() it becomes "1".

Again, this happened after an upgrade to DB 1.7.0RC1. Maybe the bug is in the DB class. If so i'm truly sorry.