]> git.mjollnir.org Git - moodle.git/commitdiff
import of new adodb 4.93 with our small fixes and tweaks MDL-6919; it should be now...
authorskodak <skodak>
Wed, 11 Oct 2006 18:40:14 +0000 (18:40 +0000)
committerskodak <skodak>
Wed, 11 Oct 2006 18:40:14 +0000 (18:40 +0000)
98 files changed:
lib/adodb/adodb-active-record.inc.php
lib/adodb/adodb-csvlib.inc.php
lib/adodb/adodb-datadict.inc.php
lib/adodb/adodb-error.inc.php
lib/adodb/adodb-errorhandler.inc.php
lib/adodb/adodb-errorpear.inc.php
lib/adodb/adodb-exceptions.inc.php
lib/adodb/adodb-iterator.inc.php
lib/adodb/adodb-lib.inc.php
lib/adodb/adodb-pager.inc.php
lib/adodb/adodb-pear.inc.php
lib/adodb/adodb-perf.inc.php
lib/adodb/adodb-php4.inc.php
lib/adodb/adodb.inc.php
lib/adodb/datadict/datadict-access.inc.php
lib/adodb/datadict/datadict-db2.inc.php
lib/adodb/datadict/datadict-firebird.inc.php
lib/adodb/datadict/datadict-generic.inc.php
lib/adodb/datadict/datadict-ibase.inc.php
lib/adodb/datadict/datadict-informix.inc.php
lib/adodb/datadict/datadict-mssql.inc.php
lib/adodb/datadict/datadict-mysql.inc.php
lib/adodb/datadict/datadict-oci8.inc.php
lib/adodb/datadict/datadict-postgres.inc.php
lib/adodb/datadict/datadict-sybase.inc.php
lib/adodb/drivers/adodb-access.inc.php
lib/adodb/drivers/adodb-ado.inc.php
lib/adodb/drivers/adodb-ado5.inc.php
lib/adodb/drivers/adodb-ado_access.inc.php
lib/adodb/drivers/adodb-ado_mssql.inc.php
lib/adodb/drivers/adodb-borland_ibase.inc.php
lib/adodb/drivers/adodb-csv.inc.php
lib/adodb/drivers/adodb-db2.inc.php
lib/adodb/drivers/adodb-fbsql.inc.php
lib/adodb/drivers/adodb-firebird.inc.php
lib/adodb/drivers/adodb-ibase.inc.php
lib/adodb/drivers/adodb-informix.inc.php
lib/adodb/drivers/adodb-informix72.inc.php
lib/adodb/drivers/adodb-ldap.inc.php
lib/adodb/drivers/adodb-mssql.inc.php
lib/adodb/drivers/adodb-mssqlpo.inc.php
lib/adodb/drivers/adodb-mysql.inc.php
lib/adodb/drivers/adodb-mysqli.inc.php
lib/adodb/drivers/adodb-mysqlt.inc.php
lib/adodb/drivers/adodb-netezza.inc.php
lib/adodb/drivers/adodb-oci8.inc.php
lib/adodb/drivers/adodb-oci805.inc.php
lib/adodb/drivers/adodb-oci8po.inc.php
lib/adodb/drivers/adodb-odbc.inc.php
lib/adodb/drivers/adodb-odbc_db2.inc.php
lib/adodb/drivers/adodb-odbc_mssql.inc.php
lib/adodb/drivers/adodb-odbc_oracle.inc.php
lib/adodb/drivers/adodb-odbtp.inc.php
lib/adodb/drivers/adodb-odbtp_unicode.inc.php
lib/adodb/drivers/adodb-oracle.inc.php
lib/adodb/drivers/adodb-pdo.inc.php
lib/adodb/drivers/adodb-pdo_mssql.inc.php
lib/adodb/drivers/adodb-pdo_mysql.inc.php
lib/adodb/drivers/adodb-pdo_oci.inc.php
lib/adodb/drivers/adodb-pdo_pgsql.inc.php
lib/adodb/drivers/adodb-postgres.inc.php
lib/adodb/drivers/adodb-postgres64.inc.php
lib/adodb/drivers/adodb-postgres7.inc.php
lib/adodb/drivers/adodb-postgres8.inc.php
lib/adodb/drivers/adodb-proxy.inc.php
lib/adodb/drivers/adodb-sapdb.inc.php
lib/adodb/drivers/adodb-sqlanywhere.inc.php
lib/adodb/drivers/adodb-sqlite.inc.php
lib/adodb/drivers/adodb-sqlitepo.inc.php
lib/adodb/drivers/adodb-sybase.inc.php
lib/adodb/drivers/adodb-sybase_ase.inc.php
lib/adodb/drivers/adodb-vfp.inc.php
lib/adodb/perf/perf-db2.inc.php
lib/adodb/perf/perf-informix.inc.php
lib/adodb/perf/perf-mssql.inc.php
lib/adodb/perf/perf-mysql.inc.php
lib/adodb/perf/perf-oci8.inc.php
lib/adodb/perf/perf-postgres.inc.php
lib/adodb/pivottable.inc.php
lib/adodb/readme_moodle.txt
lib/adodb/rsfilter.inc.php
lib/adodb/session/adodb-compress-bzip2.php
lib/adodb/session/adodb-compress-gzip.php
lib/adodb/session/adodb-cryptsession.php
lib/adodb/session/adodb-cryptsession2.php
lib/adodb/session/adodb-encrypt-mcrypt.php
lib/adodb/session/adodb-encrypt-md5.php
lib/adodb/session/adodb-encrypt-secret.php
lib/adodb/session/adodb-session-clob.php
lib/adodb/session/adodb-session-clob2.php
lib/adodb/session/adodb-session.php
lib/adodb/session/adodb-session2.php
lib/adodb/session/old/adodb-cryptsession.php
lib/adodb/session/old/adodb-session-clob.php
lib/adodb/session/old/adodb-session.php
lib/adodb/session/session_schema2.xml
lib/adodb/toexport.inc.php
lib/adodb/tohtml.inc.php

index c5c6cb79f2c9c8a13435f2791b73b7c1103fe78a..fb2395154f3e751a40083c4867eb2b11f8a8b1ea 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-@version V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+@version V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Latest version is available at http://adodb.sourceforge.net
  
   Released under both BSD license and Lesser GPL library license. 
@@ -41,7 +41,12 @@ function ADODB_SetDatabaseAdapter(&$db)
        global $_ADODB_ACTIVE_DBS;
        
                foreach($_ADODB_ACTIVE_DBS as $k => $d) {
-                       if ($d->db == $db) return $k;
+                       if (PHP_VERSION >= 5) {
+                               if ($d->db == $db) return $k;
+                       } else {
+                               if ($d->db->_connectionID == $db->_connectionID && $db->database == $d->db->database) 
+                                       return $k;
+                       }
                }
                
                $obj = new ADODB_Active_DB();
@@ -218,12 +223,12 @@ class ADODB_Active_Record {
                        break;
                default:
                        foreach($cols as $name => $fldobj) {
-                               $name = ($name);
+                               $name = ($fldobj->$name);
                                $this->$name = null;
                                $attr[$name] = $fldobj;
                        }
                        foreach($pkeys as $k => $name) {
-                               $keys[$name] = ($name);
+                               $keys[$name] = $cols[$name]->name;
                        }
                        break;
                }
index e7923db870b660232e6e17cff4346785a24b7965..a031d985cc7ca0b905c70a3bc3e0f92e6d91f70b 100644 (file)
@@ -8,7 +8,7 @@ $ADODB_INCLUDED_CSV = 1;
 
 /* 
 
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 9674cd95c597f62212ce602a3f803a644e0b52d7..edfa5a65c8f203848e5ea0237455a1c408783435 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index c66d4d7adc78c2f22a7bc2d6d3b127bcc4e36e9e..8c959dc82c5f633aab786d97b6a3e9bd2692aeea 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 41f2c489ee6f986e8dac8b8b4c38e19a1d9bd37f..6b852118da9761a26ad87c93513283ca635db064 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license.
  * Whenever there is any discrepancy between the two licenses,
  * the BSD license will take precedence.
index 143d8fc321097d51991165792e80b110403cc670..37d7bf13192c87b5acd9d3a4f9798d78a5c29844 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 394f7dcbc8f3175bc334d706a2c97a607566679e..1f11e5481f64a8617f2a7fe28a8d879107893ea4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * @version V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license.
  * Whenever there is any discrepancy between the two licenses,
  * the BSD license will take precedence.
index 86e2895d7b66ddf303a9c15327c9973036c73c1d..031c963d50242e8da18d8da8e0f707496c0b622e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 0aaaa23cd2584ca10b58239505a3dded44fe4726..b3e9246c59d0d04cb3dd576933c0db6e432a11d5 100644 (file)
@@ -7,7 +7,7 @@ global $ADODB_INCLUDED_LIB;
 $ADODB_INCLUDED_LIB = 1;
 
 /* 
- @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim\@natsoft.com.my). All rights reserved.
+ @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim\@natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
@@ -105,7 +105,7 @@ function _adodb_replace(&$zthis, $table, $fieldArray, $keyCol, $autoQuote, $has_
                        $keyCol = array($keyCol);
                }
                foreach($fieldArray as $k => $v) {
-                       if ($autoQuote && !is_numeric($v) and strncmp($v,"'",1) !== 0 and strcasecmp($v,'null')!=0) {
+                       if ($autoQuote && !is_numeric($v) and strncmp($v,"'",1) !== 0 and strcasecmp($v,$zthis->null2null)!=0) {
                                $v = $zthis->qstr($v);
                                $fieldArray[$k] = $v;
                        }
@@ -616,7 +616,7 @@ function _adodb_getupdatesql(&$zthis,&$rs, $arrFields,$forceUpdate=false,$magicq
                 //********************************************************//
                 if (is_null($arrFields[$upperfname])
                                        || (empty($arrFields[$upperfname]) && strlen($arrFields[$upperfname]) == 0)
-                    || $arrFields[$upperfname] === 'null'
+                    || $arrFields[$upperfname] === $zthis->null2null
                     )
                 {
                     switch ($force) {
@@ -638,7 +638,7 @@ function _adodb_getupdatesql(&$zthis,&$rs, $arrFields,$forceUpdate=false,$magicq
                                                default:
                         case 3:
                             //Set the value that was given in array, so you can give both null and empty values
-                            if (is_null($arrFields[$upperfname]) || $arrFields[$upperfname] === 'null') {
+                            if (is_null($arrFields[$upperfname]) || $arrFields[$upperfname] === $zthis->null2null) {
                                 $setFields .= $field->name . " = null, ";
                             } else {
                                 $setFields .= _adodb_column_sql($zthis, 'U', $type, $upperfname, $fnameq,$arrFields, $magicq);
@@ -779,7 +779,7 @@ static $cacheCols;
             /********************************************************/
             if (is_null($arrFields[$upperfname])
                 || (empty($arrFields[$upperfname]) && strlen($arrFields[$upperfname]) == 0)
-                || $arrFields[$upperfname] === 'null'
+                || $arrFields[$upperfname] === $zthis->null2null
                                )
                {
                     switch ($force) {
@@ -801,7 +801,7 @@ static $cacheCols;
                                                default:
                         case 3:
                             //Set the value that was given in array, so you can give both null and empty values
-                                                       if (is_null($arrFields[$upperfname]) || $arrFields[$upperfname] === 'null') { 
+                                                       if (is_null($arrFields[$upperfname]) || $arrFields[$upperfname] === $zthis->null2null) { 
                                                                $values  .= "null, ";
                                                        } else {
                                        $values .= _adodb_column_sql($zthis, 'I', $type, $upperfname, $fnameq, $arrFields, $magicq);
index c302d8e45560354bfc1547a789ccd42e32690511..0aa3e6a69b2220d52a98aa9ac80c041496ac8665 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-       V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+       V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Released under both BSD license and Lesser GPL library license. 
          Whenever there is any discrepancy between the two licenses, 
          the BSD license will take precedence. 
index 5d167086134be3b43266e76c02ed8791d1df6df8..e1d17b88b5bfcb5e987b4b1687afa8ba66bc896d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 0c8d38c76f88fde946af64da9af731eb1d89cb59..a9093c48d2e041a41901751b089eab728834edf5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
@@ -62,16 +62,28 @@ function adodb_microtime()
 }
 
 /* sql code timing */
-function& adodb_log_sql(&$conn,$sql,$inputarr)
+function& adodb_log_sql(&$connx,$sql,$inputarr)
 {
-       
     $perf_table = adodb_perf::table();
-       $conn->fnExecute = false;
+       $connx->fnExecute = false;
        $t0 = microtime();
-       $rs =& $conn->Execute($sql,$inputarr);
+       $rs =& $connx->Execute($sql,$inputarr);
        $t1 = microtime();
 
-       if (!empty($conn->_logsql) && (empty($conn->_logsqlErrors) || !$rs)) {
+       if (!empty($connx->_logsql) && (empty($connx->_logsqlErrors) || !$rs)) {
+       global $ADODB_LOG_CONN;
+       
+               if (!empty($ADODB_LOG_CONN)) {
+                       $conn = &$ADODB_LOG_CONN;
+                       if ($conn->databaseType != $connx->databaseType)
+                               $prefix = '/*dbx='.$connx->databaseType .'*/ ';
+                       else
+                               $prefix = '';
+               } else {
+                       $conn =& $connx;
+                       $prefix = '';
+               }
+               
                $conn->_logsql = false; // disable logsql error simulation
                $dbT = $conn->databaseType;
                
@@ -84,8 +96,8 @@ function& adodb_log_sql(&$conn,$sql,$inputarr)
                $time = $a1 - $a0;
        
                if (!$rs) {
-                       $errM = $conn->ErrorMsg();
-                       $errN = $conn->ErrorNo();
+                       $errM = $connx->ErrorMsg();
+                       $errN = $connx->ErrorNo();
                        $conn->lastInsID = 0;
                        $tracer = substr('ERROR: '.htmlspecialchars($errM),0,250);
                } else {
@@ -126,6 +138,7 @@ function& adodb_log_sql(&$conn,$sql,$inputarr)
                }
                
                if (is_array($sql)) $sql = $sql[0];
+               if ($prefix) $sql = $prefix.$sql;
                $arr = array('b'=>strlen($sql).'.'.crc32($sql),
                                        'c'=>substr($sql,0,3900), 'd'=>$params,'e'=>$tracer,'f'=>adodb_round($time,6));
                //var_dump($arr);
@@ -136,7 +149,7 @@ function& adodb_log_sql(&$conn,$sql,$inputarr)
                if (empty($d)) $d = date("'Y-m-d H:i:s'");
                if ($conn->dataProvider == 'oci8' && $dbT != 'oci8po') {
                        $isql = "insert into $perf_table values($d,:b,:c,:d,:e,:f)";
-               } else if ($dbT == 'odbc_mssql' || $dbT == 'informix' || $dbT == 'odbtp') {
+               } else if ($dbT == 'odbc_mssql' || $dbT == 'informix' || strncmp($dbT,'odbtp',4)==0) {
                        $timer = $arr['f'];
                        if ($dbT == 'informix') $sql2 = substr($sql2,0,230);
 
@@ -152,7 +165,6 @@ function& adodb_log_sql(&$conn,$sql,$inputarr)
                        if ($dbT == 'db2') $arr['f'] = (float) $arr['f'];
                        $isql = "insert into $perf_table (created,sql0,sql1,params,tracer,timer) values( $d,?,?,?,?,?)";
                }
-
                $ok = $conn->Execute($isql,$arr);
                $conn->debug = $saved;
                
@@ -178,10 +190,10 @@ function& adodb_log_sql(&$conn,$sql,$inputarr)
                                $conn->_logsql = false;
                        }
                }
-               $conn->_errorMsg = $errM;
-               $conn->_errorCode = $errN;
+               $connx->_errorMsg = $errM;
+               $connx->_errorCode = $errN;
        } 
-       $conn->fnExecute = 'adodb_log_sql';
+       $connx->fnExecute = 'adodb_log_sql';
        return $rs;
 }
 
index abe990b3e51668bb693f36b6ae92d2fbf9aac97c..a23dc17038c1c205f5a86a026b7a00b4be279ca9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index d8bec49030caf6bb9d9c04b5e039e33917d361ab..d8c1b59082988a7337dfaa588f9eba33549078fe 100644 (file)
@@ -14,7 +14,7 @@
 /**
        \mainpage       
        
-        @version V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+        @version V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 
        Released under both BSD license and Lesser GPL library license. You can choose which license
        you prefer.
        
                // PHP's version scheme makes converting to numbers difficult - workaround
                $_adodb_ver = (float) PHP_VERSION;
-               if ($_adodb_ver >= 5.0) {
+               if ($_adodb_ver >= 5.2) {
+                       define('ADODB_PHPVER',0x5200);
+               } else if ($_adodb_ver >= 5.0) {
                        define('ADODB_PHPVER',0x5000);
                } else if ($_adodb_ver > 4.299999) { # 4.3
                        define('ADODB_PHPVER',0x4300);
                
                        
                // Initialize random number generator for randomizing cache flushes
-               srand(((double)microtime())*1000000);
+               // -- note Since PHP 4.2.0, the seed  becomes optional and defaults to a random value if omitted.
+                srand(((double)microtime())*1000000);
                
                /**
                 * ADODB version as a string.
                 */
-               $ADODB_vers = 'V4.90 8 June 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. Released BSD & LGPL.';
+               $ADODB_vers = 'V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. Released BSD & LGPL.';
        
                /**
                 * Determines whether recordset->RecordCount() is used. 
        var $transCnt = 0;                      /// count of nested transactions
        
        var $fetchMode=false;
+       
+       var $null2null = 'null'; // in autoexecute/getinsertsql/getupdatesql, this value will be converted to a null
         //
         // PRIVATE VARS
         //
        var $_logsql = false;
        var $_transmode = ''; // transaction mode
        
+
+       
        /**
         * Constructor
         */
        
        function &CacheGetAll($secs2cache,$sql=false,$inputarr=false)
        {
-               return $this->CacheGetArray($secs2cache,$sql,$inputarr);
+               $arr =& $this->CacheGetArray($secs2cache,$sql,$inputarr);
+               return $arr;
        }
        
        function &CacheGetArray($secs2cache,$sql=false,$inputarr=false)
@@ -2937,8 +2945,12 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                        if ($ADODB_EXTENSION) {
                                if ($numIndex) {
                                        while (!$this->EOF) {
-                                               // $results[trim($this->fields[0])] = array_slice($this->fields, 1);
-                                               // Fix for array_slice re-numbering numeric associative keys in PHP5
+                                               $results[trim($this->fields[0])] = array_slice($this->fields, 1);
+                                               adodb_movenext($this);
+                                       }
+                               } else {
+                                       while (!$this->EOF) {
+                                       // Fix for array_slice re-numbering numeric associative keys
                                                $keys = array_slice(array_keys($this->fields), 1);
                                                $sliced_array = array();
 
@@ -2947,20 +2959,18 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                                                }
                                                
                                                $results[trim(reset($this->fields))] = $sliced_array;
-
-                                               adodb_movenext($this);
-                                       }
-                               } else {
-                                       while (!$this->EOF) {
-                                               $results[trim(reset($this->fields))] = array_slice($this->fields, 1);
                                                adodb_movenext($this);
                                        }
                                }
                        } else {
                                if ($numIndex) {
                                        while (!$this->EOF) {
-                                               //$results[trim($this->fields[0])] = array_slice($this->fields, 1);
-                                               // Fix for array_slice re-numbering numeric associative keys in PHP5
+                                               $results[trim($this->fields[0])] = array_slice($this->fields, 1);
+                                               $this->MoveNext();
+                                       }
+                               } else {
+                                       while (!$this->EOF) {
+                                       // Fix for array_slice re-numbering numeric associative keys
                                                $keys = array_slice(array_keys($this->fields), 1);
                                                $sliced_array = array();
 
@@ -2971,11 +2981,6 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                                                $results[trim(reset($this->fields))] = $sliced_array;
                                                $this->MoveNext();
                                        }
-                               } else {
-                                       while (!$this->EOF) {
-                                               $results[trim(reset($this->fields))] = array_slice($this->fields, 1);
-                                               $this->MoveNext();
-                                       }
                                }
                        }
                } else {
@@ -3548,6 +3553,8 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                'DATE' => 'D',
                'D' => 'D',
                ##
+               'UNIQUEIDENTIFIER' => 'C', # MS SQL Server
+               ##
                'TIME' => 'T',
                'TIMESTAMP' => 'T',
                'DATETIME' => 'T',
index aac218262ea5e129fede1ebf7e66f0133d451ce7..b6b5379e39e9623681572a2e945f2a899eb33882 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index e512d949653c834409b408daa80a482c19a4b9e4..2ae7d930c7d03c180d31f6c224a87dc1c81a8786 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 0cd07f586ab2b63eae93c9e635e68a396bb859fe..483ff42ea67dc43d6f02ab398a04174a2f387e6a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index e98dd99becb63bcfcd1178d920c232f6d07791f3..c9bf0e0dac86afe5d1098dab1f02462b0d823d8d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 0f120c4b532916f82179d94870b6201fb7dd8f11..be2061348d2bed8421787a7a4759ce7a7b74736c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 5be6a982f6fc9bbec090856b4582f662f4c89b96..40818e57fffaa3c9ec32d98dd5540b9f6c861fc9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 0918e408bbf5f78e848527d8c767942e587c6d58..d5d094220a7541ea288710934c9f92a868306d2e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 79953e8410a3bc6e2d6096ce41a9172a4df04599..338e2864c25ff3438674d6adf023f60de19ba7b7 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 89d124e0bf6252696a3bf8911dca89dc1e4b645f..c40f2d245fc95c6a86758411b04172bdec9659ca 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 903c8c4995d349a0be9dcdd44d32d3821bf0d444..36c8b853d4f50a72083f26f26ae4589bcd3e3654 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 664995793122f3efce5bdc835c0420b84e3dfe7f..e9fd86f4e334927e24ec783822a87ab7974893a7 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 94913cc057e53fa92d7544403428f9c4bf91766b..a37ba512749f01a722462ecca43a0d6c83dec4ec 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 46bd77923b878c45719a4ffa649f21639015950d..027fa3294e489bbcdb39a334d159dcd11ebdd897 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index b2afbca3e2c86e07e9c47e5f68b6c80d7baf372d..8131619cc729710aa437c2b6b06636121c88d052 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index e884291ef5bd80fee98408a5ad32c007b579a10d..44dc982c4aa12840be9e95828b86166e7be8cf00 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 Released under both BSD license and Lesser GPL library license. 
 Whenever there is any discrepancy between the two licenses, 
 the BSD license will take precedence. See License.txt. 
index 5075e66ba21596b598805044a5370bea7d1ebff2..6926706b42ae2e03125551ce6b6a7447e565011b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
@@ -35,6 +35,7 @@ class  ADODB_ado_mssql extends ADODB_ado {
        var $ansiOuter = true; // for mssql7 or later
        var $substr = "substring";
        var $length = 'len';
+       var $_dropSeqSQL = "drop table %s";
        
        //var $_inTransaction = 1; // always open recordsets, so no transaction problems.
        
index e581544d5961f06be73308b080a48f9ea8661f97..a5e748b1770efa81ac23d3f2b4e2325bea7dc8c2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 6f20d1dfc6c4ed65237c3da91d9c5349e5f6473b..bbd4e61369f1a27ec6929a895bb3724d25800ce1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 72bb0d1810ac79dc9255ea6312a629ae444fed2c..964a2665bc2552dcc05ee2c989d1667271204490 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-  V4.92a 29 Aug 2006  (c) 2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 
   This is a version of the ADODB driver for DB2.  It uses the 'ibm_db2' PECL extension
   for PHP (http://pecl.php.net/package/ibm_db2), which in turn requires DB2 V8.2.2 or
index 4911dd4bf0f0fccd5d91993f98e4da3ba99ab5a6..0f0522641eb8a4542733a3fad7073c9edce0fcb7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index a05d227d0c727d8e29b28174fb97cee14e0091a0..f3d7a134735cb432407a5c4efa58a1d8ad47073a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 812deb89991ae6bd3815bff2e806ccae91d58a5a..efd8a0caeba8da2c57a2538ddb6934da28c2cbae 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.  
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.  
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index a91fe6561e944e2adef8e34e0fd6e18325e48ac5..52b2cf645ebace30d85922dc4ab43f1e3391f49b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+* @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 * Released under both BSD license and Lesser GPL library license.
 * Whenever there is any discrepancy between the two licenses,
 * the BSD license will take precedence.
index 0b202a630e47e6ec20cd4df63e990f1b3bea5a85..c02a47162251252756408a635e498931a5321e10 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim. All rights reserved.
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
   the BSD license will take precedence.
index 27706dbe8d11b048dfc4b25cb114d69034d908c4..c4137cd9d777f4d3be75836da4adf7b22ea97c17 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
    Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 0f3a80fd67f9e154615268695689246c40f76acf..53e6d9536c73a6fdf0f3369d7b56498e150cbeef 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
@@ -112,19 +112,21 @@ class ADODB_mssql extends ADOConnection {
        {
        global $ADODB_FETCH_MODE;
        
-               $stmt = $this->PrepareSP('sp_server_info');
-               $val = 2;
+       
                if ($this->fetchMode === false) {
                        $savem = $ADODB_FETCH_MODE;
                        $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
                } else 
                        $savem = $this->SetFetchMode(ADODB_FETCH_NUM);
+                               
+               if (0) {
+                       $stmt = $this->PrepareSP('sp_server_info');
+                       $val = 2;
+                       $this->Parameter($stmt,$val,'attribute_id');
+                       $row = $this->GetRow($stmt);
+               }
                
-               
-               $this->Parameter($stmt,$val,'attribute_id');
-               $row = $this->GetRow($stmt);
-               
-               //$row = $this->GetRow("execute sp_server_info 2");
+               $row = $this->GetRow("execute sp_server_info 2");
                
                
                if ($this->fetchMode === false) {
@@ -410,7 +412,7 @@ order by constraint_name, referenced_table_name, keyno";
        { 
                if(@mssql_select_db("master")) { 
                                 $qry=$this->metaDatabasesSQL; 
-                                if($rs=@mssql_query($qry)){ 
+                                if($rs=@mssql_query($qry,$this->_connectionID)){ 
                                                 $tmpAr=$ar=array(); 
                                                 while($tmpAr=@mssql_fetch_row($rs)) 
                                                                 $ar[]=$tmpAr[0]; 
@@ -698,7 +700,7 @@ order by constraint_name, referenced_table_name, keyno";
                        }
                        $decl = $this->qstr($decl);
                        if ($this->debug) ADOConnection::outp("<font size=-1>sp_executesql N{$sql[1]},N$decl,$params</font>");
-                       $rez = mssql_query("sp_executesql N{$sql[1]},N$decl,$params");
+                       $rez = mssql_query("sp_executesql N{$sql[1]},N$decl,$params", $this->_connectionID);
                        
                } else if (is_array($sql)) {
                        # PrepareSP()
index bfdacf2f3e34d9832a1d8519e3817707c9272c56..5e7ae1f40473eb31a63e330ef7b115c1a2e7fa50 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+* @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
 * Released under both BSD license and Lesser GPL library license.
 * Whenever there is any discrepancy between the two licenses,
 * the BSD license will take precedence.
index 7a7f3416eccc8abe5050c0dafc6bd8cd619317b9..8e79d4a75276035d4bd1a1223f7bc048dae28b0b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 465d2bb306c2d9c33477822a6c6da9d133b6be5a..415ae2bd2ce6956d30ade6560162de2874d5b299 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
@@ -14,7 +14,7 @@ Based on adodb 3.40
 */ 
 
 // security - hide paths
-//if (!defined('ADODB_DIR')) die();
+if (!defined('ADODB_DIR')) die();
 
 if (! defined("_ADODB_MYSQLI_LAYER")) {
  define("_ADODB_MYSQLI_LAYER", 1 );
index 452a76d06027fef18d279a67b24e5df9c455da94..715d6934a1632747d8029123a65ceef7d9b0d001 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 26be2ff806db4de5a8ef187a900706e740e37cde..d03fab9f24bb58bc59a958886fde6ff083bec156 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  
   First cut at the Netezza Driver by Josh Eldridge joshuae74#hotmail.com
  Based on the previous postgres drivers.
index 09dec1f97d97d69ffb04d538b2eac75ada0d3e36..6dae98cc80b77e2449a5fdc74ee208a5a5959f81 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-  version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim. All rights reserved.
+  version V4.93 10 Oct 2006 (c) 2000-2006 John Lim. All rights reserved.
 
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
@@ -63,7 +63,7 @@ class ADODB_oci8 extends ADOConnection {
        var $_stmt;
        var $_commit = OCI_COMMIT_ON_SUCCESS;
        var $_initdate = true; // init date to YYYY-MM-DD
-       var $metaTablesSQL = "select table_name,table_type from cat where table_type in ('TABLE','VIEW')";
+       var $metaTablesSQL = "select table_name,table_type from cat where table_type in ('TABLE','VIEW') and table_name not like 'BIN\$%'"; // bin$ tables are recycle bin tables
        var $metaColumnsSQL = "select cname,coltype,width, SCALE, PRECISION, NULLS, DEFAULTVAL from col where tname='%s' order by colno"; //changed by smondino@users.sourceforge. net
        var $_bindInputArray = true;
        var $hasGenID = true;
@@ -119,8 +119,8 @@ class ADODB_oci8 extends ADOConnection {
                        $fld->type = $rs->fields[1];
                        $fld->max_length = $rs->fields[2];
                        $fld->scale = $rs->fields[3];
-                       if ($rs->fields[1] == 'NUMBER' && $rs->fields[3] == 0) {
-                               $fld->type ='INT';
+                       if ($rs->fields[1] == 'NUMBER') {
+                               if ($rs->fields[3] == 0) $fld->type = 'INT';
                        $fld->max_length = $rs->fields[4];
                }       
                        $fld->not_null = (strncmp($rs->fields[5], 'NOT',3) === 0);
index b96690e47e7ef32064e3e8108f26ef76698c2aa4..4073b604c443aba8d450f7de6b0b8d607b145b19 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 3e0e33ae57b2577d6b08e3d6b6865593eb53406a..dc75c79456d52418dff4ab0851d4ec7d452ed37c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim. All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 40ee8cff59e07c38e77b866a64a9454779667f15..adfbabad5fd007d94d45c24a6c3170b438e63380 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 463aa6580781c19c230c9b517b2ef33d636d8016..7a728cab31567159d41f4b1599f65b2d45557d8f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index bcfcd849a7742d53d957ddf29b1e7b018b22be96..54f1dfb0cfa8c6d512cab5f81253bea59d0190ee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
@@ -19,8 +19,6 @@ if (!defined('_ADODB_ODBC_LAYER')) {
        include(ADODB_DIR."/drivers/adodb-odbc.inc.php");
 }
 
-include_once(ADODB_DIR."/drivers/adodb-mssql.inc.php"); //Include mssql driver to wrap some functions
-
  
 class  ADODB_odbc_mssql extends ADODB_odbc {   
        var $databaseType = 'odbc_mssql';
@@ -75,6 +73,7 @@ class  ADODB_odbc_mssql extends ADODB_odbc {
                        return $this->GetOne($this->identitySQL);
        }
        
+       
        function MetaForeignKeys($table, $owner=false, $upper=false)
        {
        global $ADODB_FETCH_MODE;
@@ -135,6 +134,47 @@ order by constraint_name, referenced_table_name, keyno";
                return $arr;
        }
        
+       
+       function &MetaIndexes($table,$primary=false)
+       {
+               $table = $this->qstr($table);
+
+               $sql = "SELECT i.name AS ind_name, C.name AS col_name, USER_NAME(O.uid) AS Owner, c.colid, k.Keyno, 
+                       CASE WHEN I.indid BETWEEN 1 AND 254 AND (I.status & 2048 = 2048 OR I.Status = 16402 AND O.XType = 'V') THEN 1 ELSE 0 END AS IsPK,
+                       CASE WHEN I.status & 2 = 2 THEN 1 ELSE 0 END AS IsUnique
+                       FROM dbo.sysobjects o INNER JOIN dbo.sysindexes I ON o.id = i.id 
+                       INNER JOIN dbo.sysindexkeys K ON I.id = K.id AND I.Indid = K.Indid 
+                       INNER JOIN dbo.syscolumns c ON K.id = C.id AND K.colid = C.Colid
+                       WHERE LEFT(i.name, 8) <> '_WA_Sys_' AND o.status >= 0 AND O.Name LIKE $table
+                       ORDER BY O.name, I.Name, K.keyno";
+
+               global $ADODB_FETCH_MODE;
+               $save = $ADODB_FETCH_MODE;
+        $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
+        if ($this->fetchMode !== FALSE) {
+               $savem = $this->SetFetchMode(FALSE);
+        }
+        
+        $rs = $this->Execute($sql);
+        if (isset($savem)) {
+               $this->SetFetchMode($savem);
+        }
+        $ADODB_FETCH_MODE = $save;
+
+        if (!is_object($rs)) {
+               return FALSE;
+        }
+
+               $indexes = array();
+               while ($row = $rs->FetchRow()) {
+                       if (!$primary && $row[5]) continue;
+                       
+            $indexes[$row[0]]['unique'] = $row[6];
+            $indexes[$row[0]]['columns'][] = $row[1];
+       }
+        return $indexes;
+       }
+       
        function _query($sql,$inputarr)
        {
                if (is_string($sql)) $sql = str_replace('||','+',$sql);
@@ -151,12 +191,6 @@ order by constraint_name, referenced_table_name, keyno";
                if (!stristr($transaction_mode,'isolation')) $transaction_mode = 'ISOLATION LEVEL '.$transaction_mode;
                $this->Execute("SET TRANSACTION ".$transaction_mode);
        }
-
-    //Just wrap over mssql because this is one mssql odbc db
-    function &MetaIndexes($table,$primary=false)
-    {
-        return ADODB_mssql::MetaIndexes($table,$primary);
-    }
        
        // "Stein-Aksel Basma" <basma@accelero.no>
        // tested with MSSQL 2000
@@ -267,4 +301,4 @@ class  ADORecordSet_odbc_mssql extends ADORecordSet_odbc {
                return $this->ADORecordSet_odbc($id,$mode);
        }       
 }
-?>
+?>
\ No newline at end of file
index b9588f0ea891a60c0165faef56a5a77e234cd76e..9b3e540f59e109433bcd571f270b77e9844e6b21 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 9925ba8202ad7dbaff130c755027eb1d7b943f59..402b22600fe7a4ffeeec236e44d044094a2dbbc0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
   the BSD license will take precedence. See License.txt.
index 320d194f0d105f06ef720c43b202a7b6a423c3c7..2a8b44db86a6c2c6671314e6235c08756cdd6c3f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-       V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+       V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
   the BSD license will take precedence. See License.txt.
index 5564b3e08f813e89fad98984eb5e2ca803c72c49..5329770b7b3ac8371de271f0c67eeaa0890b986b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 93e758dd04e6eba29e52dcffe52128569fec989d..346034969a1fe81ae1849e347e08dbdbee294cb8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
@@ -517,7 +517,7 @@ class ADORecordSet_pdo extends ADORecordSet {
                }
                //adodb_pr($arr);
                $o->name = $arr['name'];
-               if (isset($arr['native_type'])) $o->type = $arr['native_type'];
+               if (isset($arr['native_type']) && $arr['native_type'] <> "null") $o->type = $arr['native_type'];
                else $o->type = adodb_pdo_type($arr['pdo_type']);
                $o->max_length = $arr['len'];
                $o->precision = $arr['precision'];
index c97b74f3cf86fac07ab33ff2b708cac6dcec19b6..cdfcaae1ee70611776deaf8bfc8ea435650c24d3 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index e4ec76660e978bc9d6ec6d84a88babacbf9b246d..fc803b76692d1b2f3b61536c1777d2f935100e7b 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 66c32b780a8ceadd411aaf59dc9f31a8fffa0f0e..ebfd4a3986147fed1d35b28300f16fad3c2fc841 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 5367da40da9660d27f8bfc5cfb3f66f8e4823d33..5c0c531a0712d116fac78a78b071ee169e1c557d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 42535db2ecf05d555644f4949bdcfa6885a9b513..4dd3f82c1a6d5d229c7b21b5bfd47132ce3dfa7a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 9ca6e772c77a854fd8081034d50b3752f433e208..270ccd70df218971831632e9b3a48bed93429b99 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
@@ -237,6 +237,9 @@ select viewname,'V' from pg_views where viewname like $mask";
        function qstr($s,$magic_quotes=false)
        {
                if (!$magic_quotes) {
+                       if (ADODB_PHPVER >= 0x5200) {
+                               return  "'".pg_escape_string($this->_connectionID,$s)."'";
+                       } 
                        if (ADODB_PHPVER >= 0x4200) {
                                return  "'".pg_escape_string($s)."'";
                        }
@@ -424,6 +427,7 @@ select viewname,'V' from pg_views where viewname like $mask";
        */
        function BlobEncode($blob)
        {
+               if (ADODB_PHPVER >= 0x5200) return pg_escape_bytea($this->_connectionID, $blob);
                if (ADODB_PHPVER >= 0x4200) return pg_escape_bytea($blob);
                
                /*92=backslash, 0=null, 39=single-quote*/
@@ -683,6 +687,12 @@ WHERE (c2.relname=\'%s\' or c2.relname=lower(\'%s\'))';
                }
                if ($this->_connectionID === false) return false;
                $this->Execute("set datestyle='ISO'");
+               
+               $info = $this->ServerInfo();
+               $this->pgVersion = (float) substr($info['version'],0,3);
+               if ($this->pgVersion >= 7.1) { // good till version 999
+                       $this->_nestedSQL = true;
+               }
                return true;
        }
        
index 8440ea0ffb9e8a861ff7b262a25d9d00b4632d0a..83b225cff06e58db90262b1a013e0438cb553a39 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
@@ -29,13 +29,6 @@ class ADODB_postgres7 extends ADODB_postgres64 {
                        $this->rsPrefix .= 'assoc_';
                }
                $this->_bindInputArray = PHP_VERSION >= 5.1;
-               
-               $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;
-               }*/
        }
 
        
@@ -268,4 +261,4 @@ class ADORecordSet_assoc_postgres7 extends ADORecordSet_postgres64{
                return false;
        }
 }
-?>
+?>
\ No newline at end of file
index a82fe41771816e98d581161db62024544facc34b..ab364a71d93d3c9f8ba96216ee592db55489ce6c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 19beaadd0be947e7e54f3ce3d98e558e8a331930..82af4496bb3676457a3326cdfd6dc725891f1eb4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index ef90d6c03b86727675750546ad2542f6e218bc77..53c74b412f2ffd6eb0850704bc79c76c568109f0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 813963fd58d033e4c1981375c7253c104734eaf5..206e1e16dc6630007c9325cfb48023683e275a8a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-version V4.92a 29 Aug 2006 (c) 2000-2006  John Lim (jlim#natsoft.com.my).  All rights
+version V4.93 10 Oct 2006 (c) 2000-2006  John Lim (jlim#natsoft.com.my).  All rights
 reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
index 8ff556e28c4176586976e27d81c48fad90965a96..8f93fda90eea9e91fbe274db685baa8fa78c21b7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 29c8abe67075308b52e44cf9fe0cae69bcb0bcc7..b46fc9e7a79737ae86b0815ef800c2cfbff28e42 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
   the BSD license will take precedence.
index 8276334a4a221e03b4c13a4ce6bf8e6837c084b4..023534eeafbcd54f1aea86e2a92bf659afd5e7f1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim. All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 6a26c550be68f384373589da8b88f505c017277b..02e4757e7606e5b420e3eb0dd7f21ce84b064da9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 5c3f1df1ec5cebb45860e5fd8ca0a7913fb271e4..4f15f42fc68461c09cf1d3e656a7b2a33996a244 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. 
index 45deb9be53810621ece1b16dccaff7f48e5c0d46..5b5ef115f5f2ba0e95872dc078d09e0fb195ded3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 7d1e3ad38ddcce50415ea776f0e7b8c490831393..dd82708286debddf3954e4e0f42d0df81fbf2eae 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 4d18a58e9e86e33d0e0eb8cab5c127c78d61988e..f652c761393f4a5e639f9f17ecaaaa8d72702663 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index bac1d275dfb959578f64b21bc43d365296bcf7c5..062e2a2fc17ea91a6685bfa65e0c65fb1b93be3b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 4b845497508c5f97b4c76ec21afa263d03995b42..48fbcd841fd7b5ff1afe8e20d8f7753acd181188 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index af5bbbe18e6522e735bc5e391228e456bd150a3f..37656a60f46286365bdcb765c46f19bba4262ccc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence. See License.txt. 
index 7719a6a1f8fd672684780c025632a8612fc03448..3c22f380185130f6531f222e9564e050f360b2f9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 75df469133fc56473cb0670efde6462648f7da0e..d9adc86e094087c102facd6516010e4b87b01209 100644 (file)
@@ -1,4 +1,4 @@
-Description of ADODB v4.92a library import into Moodle
+Description of ADODB v4.93 library import into Moodle
 
 Removed:
  * contrib/
@@ -15,18 +15,11 @@ 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)
- * drivers/adodb-odbc_mssql.inc.php - added one missing function (MetaIndexes) that is
-       required in order to support the driver properly. Work in progress for the annoying
-       http://tracker.moodle.org/browse/MDL-6877.
-       Once implemented by adodb guys, we'll return to their official distro.
- * drivers/adodb-odbc_mssql.inc.php - Fixed one buggy function (ServerInfo) that was not 
+ * drivers/adodb-odbc_mssql.inc.php - Fixed one buggy function (ServerInfo) that was not
        working properly. Simplified logic (now that we are FETCH_ASSOC). Work in progress
        for the annoying http://tracker.moodle.org/browse/MDL-6877.
        Once fixed by adodb guys, we'll return to their official distro.
+ * removed bogus "_connec" from first line of adodb-postgres64.inc.php
 
 skodak
-30 August 2006
+11 October 2006
index 331300448f00a8b42fa1fdbd1a03f0f289b874f2..b1106c0d367fc794ed6cb0b393c9f43f05fb9c23 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 107fdf864cc2d7184cfa1679bb770186a971e383..2ecc46dd52aef28141f49f22a29755ad4186faf2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 2db7effde75220921c024e92d68d6a37bbc0510c..ead02c079162c85f3299526d79a7a938dd7e7036 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 5dcfef50d9994325f80795df32d3eef61575f5ec..eb709273bc0d6f7beb1a8391154e54691b1d4f59 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index ac2355fffad242a3052e82945448b64d40f17ccf..06d2ecfa94a5ecbb474fde895aa591b27b788ed1 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 8ae9e2c1e3252c7c227ab1f638bb4e4fabc2d85a..b6cdd4148e21923dbcffc920c46dd83ba7433d1f 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 22c037f677a59f03b6344f0947fd76aac438df74..4ee5120a776334b6468739b2f9387f8f7ce5efed 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index ac26dbc8a3a059cf67d0953c6641b548248e5c04..07e10c2a92cce6ef1dccbd10e9aef78676efa6b8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 3643a71784f4d24870b2bc726f619cc1b12bc18f..0a193662af6134fa707fedd412ff7704ee26f7ce 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 9ba650558a43cde798c92b3619d627ba56429e85..b684533bfd8ab426a83cb27a28bfb57e755fdae4 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 964adbbbc687a5bfd9319a17e0382d4159f9016f..474548a2b17b24917d29f7cb619dd854583ac8e2 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 43396d52e521c736d243c408c750cee29188a3af..a773aa043ed7f41a535f7581a0e858cc6d7ef82f 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
          Contributed by Ross Smith (adodb@netebb.com). 
   Released under both BSD license and Lesser GPL library license.
   Whenever there is any discrepancy between the two licenses,
index 957094a182d6a71f332d38a85668f820f00a1c4f..d17f32cec2b337f526d89b1cd04cfa98b2a38675 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 1986594d0cb8d526bf8c6b2a250f70c121d90200..370a137897029fe8e78c6b6740adfbfc0e194efa 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index 5cb2698c2427839f047f1a6902d5c7d7458a2643..c4183dee94b5139431f81f50fdbe7639e7347f6d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.
index c2804eda783027a43cfc4deedc49385f09067994..22f8dafedd616ae264dff7259ba5b47883eb0a76 100644 (file)
@@ -30,7 +30,7 @@
       <descr></descr>
     </field>
 
-    <field name="DATA" type="XL">
+    <field name="SESSDATA" type="XL">
       <descr></descr>
       <NOTNULL/>
     </field>
index b3dd6efe513c807c62ee295ce11e5d99494cd4dc..6e0f777d53176cbe299354cdae0c00af3984f176 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /** 
- * @version V4.92a 29 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
  * Released under both BSD license and Lesser GPL library license. 
  * Whenever there is any discrepancy between the two licenses, 
  * the BSD license will take precedence. 
index 784fbe193dd6bcb7ce86df8bd7189a9935f9285c..5f1071cc7d34c2b4c15aaff4c4e99a1644990dc2 100644 (file)
@@ -1,6 +1,6 @@
 <?php 
 /*
-  V4.92a 29 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
   the BSD license will take precedence.