mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
debug data enabled
This commit is contained in:
parent
25293f7f35
commit
a67b9a77f9
@ -167,15 +167,15 @@ class MSSQLDatabase extends Database {
|
|||||||
$starttime = microtime(true);
|
$starttime = microtime(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//echo 'sql: ' . $sql . '<br>';
|
echo 'sql: ' . $sql . '<br>';
|
||||||
//Debug::backtrace();
|
//Debug::backtrace();
|
||||||
|
|
||||||
$funcName=$this->funcPrefix . '_query';
|
//$funcName=$this->funcPrefix . '_query';
|
||||||
|
|
||||||
if($this->funcPrefix=='mssql')
|
if($this->funcPrefix=='mssql')
|
||||||
$handle = $funcName($sql, $this->dbConn);
|
$handle = mssql_query($sql, $this->dbConn);
|
||||||
else
|
else
|
||||||
$handle = $funcName($this->dbConn, $sql);
|
$handle = sqlsrv_query($this->dbConn, $sql);
|
||||||
|
|
||||||
if(isset($_REQUEST['showqueries'])) {
|
if(isset($_REQUEST['showqueries'])) {
|
||||||
$endtime = round(microtime(true) - $starttime,4);
|
$endtime = round(microtime(true) - $starttime,4);
|
||||||
|
Loading…
Reference in New Issue
Block a user