cleaning up code.

This commit is contained in:
Taylor Otwell
2012-02-17 16:30:11 -06:00
parent 33e4914634
commit fe0b4b287d
5 changed files with 28 additions and 27 deletions

View File

@@ -26,8 +26,7 @@ class SQLServer extends Connector {
// Format the SQL Server connection string. This connection string format can
// also be used to connect to Azure SQL Server databases. The port is defined
// directly after the server name, so we'll create that and then create the
// final DSN string to pass to PDO.
// directly after the server name, so we'll create that first.
$port = (isset($port)) ? ','.$port : '';
$dsn = "sqlsrv:Server={$host}{$port};Database={$database}";