PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #4221

MSSQL driver fails to select database

Details

Submitted2005-04-25 16:00 UTC
Fromelite at programmer dot net
Assigneddanielc
StatusWont fix
PackageDB
PHP Version5.0.4
OSWindows 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"