Development

#2016 (sfDatabase child classes do not allow for multiple connections.)

You must first sign up to be able to contribute.

Ticket #2016 (new defect)

Opened 1 year ago

Last modified 1 year ago

sfDatabase child classes do not allow for multiple connections.

Reported by: Alex.Walker Assigned to: fabien
Priority: major Milestone:
Component: other Version: 1.0.5
Keywords: multiple databases Cc:
Qualification:

Description

The sf*Database classes are limited to one resource when multiple databases are specified in databases.yml and the host, username, and password are all the same.

I propose specifying the respective argument as true by default, because the sfDatabaseManager already ensures that the respective connect() is called only once.

* sfMySQLDatabase, the class does not specify the new_link argument in the mysql_connect function. * sfPostgreDatabse, the class does not specify the PGSQL_CONNECT_FORCE_NEW option. * sfPDODatabase, sorry, but I'm not sure how this one works.

For more information as to how I came upon this specific problem, I have posted on the forum here, Multiple databases, problem and solution.

cheers, Alex

Change History

07/31/07 11:02:12 changed by fabien

  • milestone deleted.