Home » Database » DB » Bug #4221
MSSQL driver fails to select database
Details
| Submitted | 2005-04-25 16:00 UTC |
|---|---|
| From | elite at programmer dot net |
| Assigned | danielc |
| Status | Wont fix |
| Package | DB |
| PHP Version | 5.0.4 |
| OS | Windows 2003 |
| Roadmaps | (Not assigned) |
Comments
[2005-04-25 16:00 UTC] elite at programmer dot net
Description:
------------
After upgrading to PHP 5.0.4 from 5.0.3 DB with SQL Server 2000 on Windows 2003/IIS6 started failing fatally. It reported "No database selected" all of the sudden but once I put the database name in [] in the dsn it worked again.
I suspect this is related to the fixed bug in the php mssql driver related to PHP reporting "Changed database context to..." all the time since that error disappeared after the upgrade.
Reproduce code:
---------------
$dsn = "mssql://test:user@localhost/[Northwind]" works.
$dsn = "mssql://test:user@localhost/Northwind" does not.
Expected result:
----------------
Connected database
Actual result:
--------------
DB failing fatally with "No database selected"