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:
stronk7 2006-10-09 23:36:27 +00:00
parent 97ab73aad4
commit d5d50c2d54

View File

@ -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;