• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Patches?

#3
[eluser]dathan[/eluser]
It's a fix, so to speak, though there's no bug associated with it. I expect perhaps the bug tracker is the way to go, but first, lemme give you the whole story and you can probably give me the official answer.

In my server configuration, httpd runs as the "apache" user account. I need my controller to connect to a postgres database named "db1" running on localhost. The current config permits the apache account to connect to the db1 database without providing any additional credentials -- and in fact, I don't have any idea what the password is for the apache account. If I just use "pg_connect('dbname=db1');", it connects fine. However, the connection logic for the postgre driver (in the db_connect and db_pconnect methods) doesn't support not supplying a hostname, username, or password. So I modified the methods to create the appropriate connection string from whichever parameters are available.


Messages In This Thread
Patches? - by El Forum - 06-30-2008, 02:31 PM
Patches? - by El Forum - 06-30-2008, 02:51 PM
Patches? - by El Forum - 06-30-2008, 03:35 PM
Patches? - by El Forum - 06-30-2008, 03:40 PM
Patches? - by El Forum - 06-30-2008, 04:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.