Home » Database » DB » Bug #3594
createTables.php doesn't work for PostgreSQL backend with DB 1.7.0RC1
Details
| Submitted | 2005-02-25 14:44 UTC |
|---|---|
| From | gjm at uevora dot pt |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | 4.3.10 |
| OS | Linux |
| 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.