|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-07 05:10 UTC] Satria at dreamweb dot co dot id
Description:
------------
mssql_select_db() also override Used Database on the another Connection
Reproduce code:
---------------
$sqlLink1=mssql_connect($host,$user,$pass);
$SecondLINK=mssql_connect($host,$user,$pass);
/*Yes, both connection on same Machine*/
mssql_select_db('db1',$sqlLink1);
/*Until here, still no problem*/
mssql_select_db('db2', $SecondLINK);
//Second time DB Select also will override $sqlLink1, is this Bugs? or... its what should it be ?
Expected result:
----------------
mssql_select_db() only affected on the $param2 connection
Actual result:
--------------
-
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
Description: ------------ mssql_select_db() also override Used Database on the another Connection Reproduce code: --------------- $sqlLink1=mssql_connect($host,$user,$pass); $SecondLINK=mssql_connect($host,$user,$pass); /*Yes, both connection on same Machine*/ mssql_select_db('db1',$sqlLink1); /*Until here, still no problem*/ mssql_select_db('db2', $SecondLINK); //Second time DB Select also will override $sqlLink1, is this Bugs? or... its what should it be ? Expected result: ---------------- mssql_select_db() only affected on the $param2 connection Actual result: -------------- -