Menu

#87 DSN Query string parse error... Easy to fix, insane to debug

open
5
2007-05-28
2007-05-28
Anonymous
No

Docs clearly state correct DSN flag to force new DB connections is "new". After hours of debugging, I found this in adodb.inc.php on line 119:

case 'forcenew': $forcenew = $data; break;

The flag the code is looking for is "forcenew"!
This could be easily be fixed by changing the line to:

case ('forcenew' || 'new'): $forcenew = $data; break;

Please... Fix this bug and save the next person all the hours of my life I wasted :-)

-Aubrey
AubreyFalconer.com

Discussion


Log in to post a comment.

MongoDB Logo MongoDB