]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed Bug MDL-6647 - PG version not being fetched properly.
authorstronk7 <stronk7>
Wed, 27 Sep 2006 17:48:45 +0000 (17:48 +0000)
committerstronk7 <stronk7>
Wed, 27 Sep 2006 17:48:45 +0000 (17:48 +0000)
(http://tracker.moodle.org/browse/MDL-6647)

lib/adodb/drivers/adodb-postgres7.inc.php
lib/adodb/readme_moodle.txt

index 6856a6612aa3e3c1e184fea53cbd9608c0738c8a..8440ea0ffb9e8a861ff7b262a25d9d00b4632d0a 100644 (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;
        }
 }
-?>
\ No newline at end of file
+?>
index 724c5238251439780ab05a563eb9e5ffa823b53e..922f344de59ba487bb3fe1067f3c798ae3ca9eb1 100644 (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
\ No newline at end of file
+30 August 2006