mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Fixed ServerInfo() behaviour for odbc_mssql. We need this working properly NOW!
(will be back once ADOdb code supports it properly)
This commit is contained in:
parent
97ab73aad4
commit
d5d50c2d54
@ -49,15 +49,13 @@ class ADODB_odbc_mssql extends ADODB_odbc {
|
||||
}
|
||||
|
||||
// crashes php...
|
||||
//Note replaced by some different code to allow it to work properly
|
||||
//for Moode environmental checks
|
||||
function ServerInfo()
|
||||
{
|
||||
global $ADODB_FETCH_MODE;
|
||||
$save = $ADODB_FETCH_MODE;
|
||||
$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
|
||||
$row = $this->GetRow("execute sp_server_info 2");
|
||||
$ADODB_FETCH_MODE = $save;
|
||||
if (!is_array($row)) return false;
|
||||
$arr['description'] = $row[2];
|
||||
|
||||
$arr['description'] = $row['attribute_value'];
|
||||
$arr['version'] = ADOConnection::_findvers($arr['description']);
|
||||
return $arr;
|
||||
}
|
||||
@ -77,7 +75,6 @@ class ADODB_odbc_mssql extends ADODB_odbc {
|
||||
return $this->GetOne($this->identitySQL);
|
||||
}
|
||||
|
||||
|
||||
function MetaForeignKeys($table, $owner=false, $upper=false)
|
||||
{
|
||||
global $ADODB_FETCH_MODE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user