Skip to content

Commit 91c25c7

Browse files
committed
Update ez_sql_sqlsrv.php
1 parent 0e0d06a commit 91c25c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ez_sql_sqlsrv.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ezSQL_sqlsrv extends ezSQLcore
6565
* same time as initializing the ezSQL_mssql class
6666
*/
6767

68-
function __construct($dbuser='', $dbpassword='', $dbname='', $dbhost='localhost', $convertMySqlToMSSqlQuery=true)
68+
function __construct($dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost', $convertMySqlToMSSqlQuery = true)
6969
{
7070
parent::__construct();
7171

@@ -84,7 +84,7 @@ function __construct($dbuser='', $dbpassword='', $dbname='', $dbhost='localhost'
8484
* and select a sqlsrv database at the same time
8585
*/
8686

87-
function quick_connect($dbuser='', $dbpassword='', $dbname='', $dbhost='localhost')
87+
function quick_connect($dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost')
8888
{
8989
$return_val = false;
9090
$this->_connected = false;
@@ -98,7 +98,7 @@ function quick_connect($dbuser='', $dbpassword='', $dbname='', $dbhost='localhos
9898
* Try to connect to sqlsrv database server
9999
*/
100100

101-
function connect($dbuser='', $dbpassword='', $dbname='', $dbhost='localhost')
101+
function connect($dbuser = '', $dbpassword = '', $dbname = '', $dbhost = 'localhost')
102102
{
103103
global $ezsql_sqlsrv_str; $return_val = false;
104104
$this->_connected = false;
@@ -159,7 +159,7 @@ function query($query, $use_prepare=false)
159159

160160
//if flag to convert query from MySql syntax to MS-Sql syntax is true
161161
//convert the query
162-
if($this->convertMySqlTosqlsrvQuery == true)
162+
if($this->convertMySqlToMSSqlQuery == true)
163163
$query = $this->ConvertMySqlTosqlsrv($query);
164164

165165

0 commit comments

Comments
 (0)