Active
Project:
DBLIB driver for SQL Server
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2012 at 11:50 UTC
Updated:
14 Nov 2013 at 10:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
philipz commentedA colon not a semicolon of course:
Comment #2
paddy_deburca commentedPhilip, the fix is not as simple as this. I believe that the comma works on MS Windows (http://www.php.net/manual/en/ref.pdo-dblib.php#66917), whereas the colon is necessary for *nix.
It may be necessary to define a DB_PORT_SEPARATOR that is either a comma or a colon depending on the architecture, and using that constant rather than hard coding a comma or colon in the host option.
Paddy.
Comment #3
philipz commentedThis is a good idea to implement it like that.
From various sources I found you could check for OS like that:
BTW since my last comment I've been using your driver also with Migrate module and it's been working great.
Comment #4
amonteroHappened to me, too. Kept me busy for some time until found it:
http://us1.php.net/manual/en/ref.pdo-dblib.connection.php#88703
The main reasoning for using this module is using it from OS other than Windows. Should not this be warned in the project page, if not left by default as colon in the code?
Comment #5
deadbeef commentedHere's a patch that should apply with git and set the separator depending on OS