pg_connect parameter order? [message #1176] |
Wed, 28 November 2007 07:52 |
chrisvwn
Messages: 3 Registered: November 2007
|
Junior Member |
|
|
Hi,
I almost pulled my hair out installing radicore since i kept getting the error that the audit schema did not exist. but through farther debugging, i realized that although the system was connecting to postgresql, it was connecting to the wrong database - the postgresql default db.
the way i solved this was to change the code in dml.pgsql.inc and changing the order of parameters for the connection from pg_connect("host=$host,user=$user,pass=$pass,db=$db") to pg_connect("host=$host,db=$db,user=$user,pass=$pass") - not the exact syntax but you can see the change in the location of the dbase parameter.
worked for me.
postgresql 8.2.3
php 5.2.1
cheers
|
|
|