Fixed Bug MDL-6647 - PG version not being fetched properly.

(http://tracker.moodle.org/browse/MDL-6647)
This commit is contained in:
stronk7 2006-09-27 17:48:45 +00:00
parent 05e8f81eeb
commit 13e9de1c67
2 changed files with 8 additions and 4 deletions

View File

@ -30,11 +30,12 @@ class ADODB_postgres7 extends ADODB_postgres64 {
}
$this->_bindInputArray = PHP_VERSION >= 5.1;
$info = $this->ServerInfo();
$this->_nestedSQL = true;
/*$info = $this->ServerInfo();
$this->pgVersion = (float) substr($info['version'],0,3);
if ($this->pgVersion >= 7.1) { // good till version 999
$this->_nestedSQL = true;
}
}*/
}
@ -267,4 +268,4 @@ class ADORecordSet_assoc_postgres7 extends ADORecordSet_postgres64{
return false;
}
}
?>
?>

View File

@ -14,6 +14,9 @@ Added:
Our changes:
* adodb-lib.inc.php - forced conversion to proper numeric type in _adodb_column_sql()
* drivers-adodb-postgres7.inc.php - removed (commented) one buggy ServerInfo() call that
was preventing PG version detection to work. http://tracker.moodle.org/browse/MDL-6647
Once solved by adodb guys, we'll undo this (affects to version v4.92a of ADOdb)
skodak
30 August 2006
30 August 2006