DataObjects and postgresql
| From: | xav | Date: | Mon, 23 Sep 2002 12:11:00 +0000 |
| Subject: | DataObjects and postgresql | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2368@lists.php.net to get a copy of this message | ||
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.
~
--
xav