mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Fixed Bug MDL-6647 - PG version not being fetched properly.
(http://tracker.moodle.org/browse/MDL-6647)
This commit is contained in:
parent
05e8f81eeb
commit
13e9de1c67
@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user