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
b50f0baa6e
commit
881a602894
@ -59,6 +59,7 @@ class MSSQLDatabase extends Database {
|
||||
if(function_exists('sqlsrv_connect')){
|
||||
$this->funcPrefix='sqlsrv';
|
||||
$this->dbConn = sqlsrv_connect($parameters['server'], Array('UID'=>$parameters['username'], 'PWD'=>$parameters['password'], 'Database'=>$parameters['database']));
|
||||
$this->query('USE ' . $parameters['database'] . ';');
|
||||
$this->active=true;
|
||||
} else {
|
||||
$this->funcPrefix='mssql';
|
||||
@ -1146,6 +1147,7 @@ class MSSQLQuery extends Query {
|
||||
}
|
||||
|
||||
public function nextRecord() {
|
||||
echo 'running nextRecord<br>';
|
||||
// Coalesce rather than replace common fields.
|
||||
if($this->funcPrefix=='mssql'){
|
||||
if($data = mssql_fetch_row($this->handle)) {
|
||||
|
Loading…
Reference in New Issue
Block a user