Damien mentioned that getActiveConnection does and then I realized it's copypasted.

Comments

damien tournoud’s picture

StatusFileSize
new4.41 KB

getActiveConnection() and getConnection() were buggy anyway: if called on a non existing target, openConnection() will be called each time, because the target will not be found in self::$connections

damien tournoud’s picture

StatusFileSize
new5.99 KB

Bug description: all getConnection() twice with the same unknown $target... openConnection() is called twice...

Now with a unit test case.

damien tournoud’s picture

StatusFileSize
new6.05 KB

Now with some less incorrect English.

dries’s picture

Status: Needs review » Fixed

Makes sense, and the tests made it easy to understand and review. Committed to CVS HEAD. Thanks a lot.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.