Bug in DSN connection. |
[eluser]Claudiu CISMARU[/eluser]
I have reported a bug, regarding DSN, but seems that in the new version (1.5.4) there is no update. The problem still persists. Here is my message: Quote:There is a bug in CI.
[eluser]Henrik Pejer[/eluser]
Hmm... reading the user guide, it states that you can use dsn, but it should then be a parameter when you use $this->load->database ( check http://ellislab.com/codeigniter/user-gui...cting.html ). And the db-config is supposed to be an array. My suggestion would be: either use the database config as an array, or supply your dsn when you load the database manually. I would not consider this a bug, check the user guide. One could, however, argue if it should be possible to have a dsn in the config. Why not extend the database class to accept a dsn from the config? Good luck!
[eluser]Claudiu CISMARU[/eluser]
[quote author="Henrik Pejer" date="1187090471"]My suggestion would be: either use the database config as an array, or supply your dsn when you load the database manually.[/quote] Why don't you try and see what is happening, when you use DSN in manually database load... The code that gave me error first time when I wrote it, and I started to checkout why is happening is: Code: /* Connect to the database */ Code: $admConfig["dsnTemplate"] = "postgre://user:password@localhost/%s"; Well? Why don't you try by yourself and reply again...
[eluser]Henrik Pejer[/eluser]
Thats very strange! I was sure that I'd use DSN-type strings with CI and it worked perfectly! I owe you an apology.
|
Welcome Guest, Not a member yet? Register Sign In |