|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-19 18:00 UTC] courtois at nouvo dot com
-Status: Open
+Status: Closed
[2010-04-19 18:00 UTC] courtois at nouvo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 18:00:01 2025 UTC |
Description: ------------ when using 2 databases at the same time with 2 links, database selection is lost. Test script: --------------- <?php $db1 = mysql_connect("localhost","user1","pass"); mysql_select_db("database1",$db1); $db2 = mysql_connect("localhost","user2","pass"); mysql_select_db("database2",$db2); if(!(mysql_query("select * from mytable",$db1))) print "error:".mysql_error(); else print "ok"; ?> Expected result: ---------------- should print "ok" works fine with windows (builtin mysql) but not with debian lenny Actual result: -------------- error:Table 'database2.mytable' doesn't exist the select is done on database2 although database1 was selected on the $db1 link.