re: DataObjects and postgresql
| From: | Alan Knowles | Date: | Tue, 30 Apr 2002 17:22:00 +0000 |
| Subject: | re: DataObjects and postgresql | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2372@lists.php.net to get a copy of this message | ||
try setting debug=10, it should show a bit more information,
Hi Folks,
I got a problem using DataObjects with Postgresql.
First, I've tried successfully DataObjects Auto building with Mysql ,
and then I try to do the same with a postgresql Database.
When I try : php createtables nci.ini
I got an Error return:
php createTables.php nci.ini
X-Powered-By: PHP/4.2.3
Content-type: text/html
CREATING FOR pgsql://user:pass@localhost/nci
DB Error: no such database
Where my nci.ini file looks like:
[DB_DataObject]
database = "pgsql://user:pass@localhost/nci"
schema_location = /home/Vhosts/project/DataObjects
class_location = /home/Vhosts/project/DataObjects
require_prefix = DataObjects/
class_prefix = DataObjects_debug = 1 When I use Pear DB with this dsn, it works, but if I use this dsn in DataObjects Ini file, it crash ... Any Idea around ? Thanks. ~