]> git.mjollnir.org Git - moodle.git/commitdiff
import of new ADODB v4.92 library
authorskodak <skodak>
Tue, 29 Aug 2006 20:23:17 +0000 (20:23 +0000)
committerskodak <skodak>
Tue, 29 Aug 2006 20:23:17 +0000 (20:23 +0000)
99 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-memcache.lib.inc.php [new file with mode: 0644]
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/server.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/toexport.inc.php
lib/adodb/tohtml.inc.php

index 96aa66122c99e24a8400c24280d72092db19494c..767193fbc5f3fe2b7743a53e141a06371b68d2ab 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-@version V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+@version V4.92 29 Aug 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. 
@@ -102,6 +102,12 @@ class ADODB_Active_Record {
                $this->UpdateActiveTable($pkeyarr);
        }
        
+       function __wakeup()
+       {
+               $class = get_class($this);
+               new $class;
+       }
+       
        function _pluralize($table)
        {
                $ut = strtoupper($table);
index 78b75be6ff8686107f9ca1d54f118e3c71e934d3..a2826ca077294c608f75a6ae1870727263cc066f 100644 (file)
@@ -8,7 +8,7 @@ $ADODB_INCLUDED_CSV = 1;
 
 /* 
 
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 fd25aab9b20914cda2f7c82bb9dafe15fe02aebf..27ef41afb177faafc9b17393034f58eb6201e4ba 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 7d0ee4de6a377377f0b18f93323f76b50654408d..ff628d478bcc2a3450ccab43ca14d005736f3255 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 44bcd78a958fc155f6ab3c2eee962dc7e5eecdf9..1a21268e02b2e3ded2804b6aad1693fd3c35537c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 19cdf16c41458e596a8c7a58f78cb36b10104043..7f1c8f0c02a2efa48a83babf64908c85325fcd5f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 9f7f0ee1d9fb56045b51679ec5aad10c46564995..89d2a3376efa5f18dd3132b84fa8519a61603bfb 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * @version V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 c451ee50bceb888f341a31b8fa2918abd988b403..ff1016c7bfa177fdac3a88c8c14486c7661e484c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 35da0e76d40816bfeb60693784842813875ab7f6..ed6aac47dd7b848812e42aec05d019ab51ba3722 100644 (file)
@@ -7,7 +7,7 @@ global $ADODB_INCLUDED_LIB;
 $ADODB_INCLUDED_LIB = 1;
 
 /* 
- @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim\@natsoft.com.my). All rights reserved.
+ @version V4.92 29 Aug 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. 
@@ -16,6 +16,69 @@ $ADODB_INCLUDED_LIB = 1;
   Less commonly used functions are placed here to reduce size of adodb.inc.php. 
 */ 
 
+function adodb_probetypes(&$array,&$types,$probe=8)
+{
+// probe and guess the type
+       $types = array();
+       if ($probe > sizeof($array)) $max = sizeof($array);
+       else $max = $probe;
+       
+       
+       for ($j=0;$j < $max; $j++) {
+               $row =& $array[$j];
+               if (!$row) break;
+               $i = -1;
+               foreach($row as $v) {
+                       $i += 1;
+
+                       if (isset($types[$i]) && $types[$i]=='C') continue;
+                       
+                       //print " ($i ".$types[$i]. "$v) ";
+                       $v = trim($v);
+                       
+                       if (!preg_match('/^[+-]{0,1}[0-9\.]+$/',$v)) {
+                               $types[$i] = 'C'; // once C, always C
+                               
+                               continue;
+                       }
+                       if ($j == 0) { 
+                       // If empty string, we presume is character
+                       // test for integer for 1st row only
+                       // after that it is up to testing other rows to prove
+                       // that it is not an integer
+                               if (strlen($v) == 0) $types[$i] = 'C';
+                               if (strpos($v,'.') !== false) $types[$i] = 'N';
+                               else  $types[$i] = 'I';
+                               continue;
+                       }
+                       
+                       if (strpos($v,'.') !== false) $types[$i] = 'N';
+                       
+               }
+       }
+}
+
+function  &adodb_transpose(&$arr, &$newarr, &$hdr)
+{
+       $oldX = sizeof(reset($arr));
+       $oldY = sizeof($arr);   
+       
+       if ($hdr) {
+               $startx = 1;
+               $hdr = array();
+               for ($y = 0; $y < $oldY; $y++) {
+                       $hdr[] = $arr[$y][0];
+               }
+       } else
+               $startx = 0;
+
+       for ($x = $startx; $x < $oldX; $x++) {
+               $newarr[] = array();
+               for ($y = 0; $y < $oldY; $y++) {
+                       $newarr[$x-$startx][] = $arr[$y][$x];
+               }
+       }
+}
 
 // Force key to upper. 
 // See also http://www.php.net/manual/en/function.array-change-key-case.php
@@ -297,14 +360,14 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)
 {
        $qryRecs = 0;
        
-        if (preg_match("/^\s*SELECT\s+DISTINCT/is", $sql) || 
+        if (!empty($zthis->_nestedSQL) || preg_match("/^\s*SELECT\s+DISTINCT/is", $sql) || 
                preg_match('/\s+GROUP\s+BY\s+/is',$sql) || 
                preg_match('/\s+UNION\s+/is',$sql)) {
                // ok, has SELECT DISTINCT or GROUP BY so see if we can use a table alias
                // but this is only supported by oracle and postgresql...
                if ($zthis->dataProvider == 'oci8') {
                        
-                       $rewritesql = preg_replace('/(\sORDER\s+BY\s.*)/is','',$sql);
+                       $rewritesql = preg_replace('/(\sORDER\s+BY\s[^)]*)/is','',$sql);
                        
                        // Allow Oracle hints to be used for query optimization, Chris Wrye
                        if (preg_match('#/\\*+.*?\\*\\/#', $sql, $hint)) {
@@ -313,12 +376,8 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)
                                $rewritesql = "SELECT COUNT(*) FROM (".$rewritesql.")"; 
                        
                } else if (strncmp($zthis->databaseType,'postgres',8) == 0)  {
-                       
-                       $info = $zthis->ServerInfo();
-                       if (substr($info['version'],0,3) >= 7.1) { // good till version 999
-                               $rewritesql = preg_replace('/(\sORDER\s+BY\s[^)]*)/is','',$sql);
-                               $rewritesql = "SELECT COUNT(*) FROM ($rewritesql) _ADODB_ALIAS_";
-                       }
+                       $rewritesql = preg_replace('/(\sORDER\s+BY\s[^)]*)/is','',$sql);
+                       $rewritesql = "SELECT COUNT(*) FROM ($rewritesql) _ADODB_ALIAS_";
                }
        } else {
                // now replace SELECT ... FROM with SELECT COUNT(*) FROM
@@ -383,7 +442,6 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)
                $rstest->Close();
                if ($qryRecs == -1) return 0;
        }
-       
        return $qryRecs;
 }
 
diff --git a/lib/adodb/adodb-memcache.lib.inc.php b/lib/adodb/adodb-memcache.lib.inc.php
new file mode 100644 (file)
index 0000000..fc4748a
--- /dev/null
@@ -0,0 +1,118 @@
+<?php
+
+// security - hide paths
+if (!defined('ADODB_DIR')) die();
+
+global $ADODB_INCLUDED_MEMCACHE;
+$ADODB_INCLUDED_MEMCACHE = 1;
+
+/* 
+
+  V4.90 8 June 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. 
+  Set tabs to 4 for best viewing.
+  
+  Latest version is available at http://adodb.sourceforge.net
+  
+*/
+
+       function &getmemcache($key,&$err, $timeout=0, $host, $port)
+       {
+               $false = false;
+               $err = false;
+
+               if (!function_exists('memcache_pconnect')) {
+                       $err = 'Memcache module PECL extension not found!';
+                       return $false;
+               }
+
+               $memcache = new Memcache;
+               if (!@$memcache->pconnect($host, $port)) {
+                       $err = 'Can\'t connect to memcache server on: '.$host.':'.$port;
+                       return $false;
+               }
+
+               $rs = $memcache->get($key);
+               if (!$rs) {
+                       $err = 'Item with such key doesn\'t exists on the memcached server.';
+                       return $false;
+               }
+
+               $tdiff = intval($rs->timeCreated+$timeout - time());
+               if ($tdiff <= 2) {
+                       switch($tdiff) {
+                               case 2: 
+                                       if ((rand() & 15) == 0) {
+                                               $err = "Timeout 2";
+                                               return $false;
+                                       }
+                                       break;
+                               case 1:
+                                       if ((rand() & 3) == 0) {
+                                               $err = "Timeout 1";
+                                               return $false;
+                                       }
+                                       break;
+                               default: 
+                                       $err = "Timeout 0";
+                                       return $false;
+                       }
+               }
+               return $rs;
+       }
+
+       function putmemcache($key, $rs, $host, $port, $compress, $debug=false)
+       {
+               $false = false;
+               $true = true;
+
+               if (!function_exists('memcache_pconnect')) {
+                       if ($debug) ADOConnection::outp(" Memcache module PECL extension not found!<br>\n");
+                       return $false;
+               }
+
+               $memcache = new Memcache;
+               if (!@$memcache->pconnect($host, $port)) {
+                       if ($debug) ADOConnection::outp(" Can't connect to memcache server on: $host:$port<br>\n");
+                       return $false;
+               }
+
+               $rs->timeCreated = time();
+               if (!$memcache->set($key, $rs, $compress, 0)) {
+                       if ($debug) ADOConnection::outp(" Failed to save data at the memcached server!<br>\n");
+                       return $false;
+               }
+               return $true;
+       }
+
+       function flushmemcache($key=false, $host, $port, $debug=false)
+       {
+               if (!function_exists('memcache_pconnect')) {
+                       if ($debug) ADOConnection::outp(" Memcache module PECL extension not found!<br>\n");
+                       return;
+               }
+
+               $memcache = new Memcache;
+               if (!@$memcache->pconnect($host, $port)) {
+                       if ($debug) ADOConnection::outp(" Can't connect to memcache server on: $host:$port<br>\n");
+                       return;
+               }
+
+               if ($key) {
+                       if (!$memcache->delete($key)) {
+                               if ($debug) ADOConnection::outp("CacheFlush: $key entery doesn't exist on memcached server!<br>\n");
+                       } else {
+                               if ($debug) ADOConnection::outp("CacheFlush: $key entery flushed from memcached server!<br>\n");
+                       }
+               } else {
+                       if (!$memcache->flush()) {
+                               if ($debug) ADOConnection::outp("CacheFlush: Failure flushing all enteries from memcached server!<br>\n");
+                       } else {
+                               if ($debug) ADOConnection::outp("CacheFlush: All enteries flushed from memcached server!<br>\n");
+                       }
+               }
+               return;
+       }
+?>
index d196af034ab5cb415f4b63ba8c63cad5cb54164a..5892488cf935989b8ea2187d407bda6517881932 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-       V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+       V4.92 29 Aug 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 6bb1c55dc31abc490e5f7718d8354e36bb065123..bcbc6a4b5ab4d4dee3b3a52281e3f16dee98617a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 9c1a442319cb65aaa006e0c194394164d2b30368..8e89f1e329cbbe5461e6a6237cdfa5763e561ea4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 6ef525261ece5e2fedc6d5c2e0df9dd81781e9da..18914e05ff7eeabe1431616302c3d70dbe999aa5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 3ccd6283145bf8ea98b938c571b6d2683833325f..3a4e1a75e63d664d581107495f6e958459229974 100644 (file)
@@ -14,7 +14,7 @@
 /**
        \mainpage       
        
-        @version V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+        @version V4.90 8 June 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.
                /**
                 * ADODB version as a string.
                 */
-               $ADODB_vers = 'V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. Released BSD & LGPL.';
+               $ADODB_vers = 'V4.90 8 June 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. Released BSD & LGPL.';
        
                /**
                 * Determines whether recordset->RecordCount() is used. 
        var $raiseErrorFn = false;      /// error function to call
        var $isoDates = false; /// accepts dates in ISO format
        var $cacheSecs = 3600; /// cache for 1 hour
+
+       // memcache
+       var $memCache = false; /// should we use memCache instead of caching in files
+       var $memCacheHost; /// memCache host
+       var $memCachePort = 11211; /// memCache port
+       var $memCacheCompress = false; /// Use 'true' to store the item compressed (uses zlib)
+
        var $sysDate = false; /// name of function that returns the current date
        var $sysTimeStamp = false; /// name of function that returns the current timestamp
        var $arrayClass = 'ADORecordSet_array'; /// name of class used to generate array recordsets, which are pre-downloaded recordsets
                return $this->Parameter($stmt,$var,$name,true,$maxLen,$type);
        
        }
+
        
        /* 
        Usage in oracle
                return false;
        }
        
+       
+       function IgnoreErrors($saveErrs=false)
+       {
+               if (!$saveErrs) {
+                       $saveErrs = array($this->raiseErrorFn,$this->_transOK);
+                       $this->raiseErrorFn = false;
+                       return $saveErrs;
+               } else {
+                       $this->raiseErrorFn = $saveErrs[0];
+                       $this->_transOK = $saveErrs[1];
+               }
+       }
+       
        /**
                Improved method of initiating a transaction. Used together with CompleteTrans().
                Advantages include:
                        if ($ismssql) $isaccess = false;
                        else $isaccess = (strpos($this->databaseType,'access') !== false);
                        
-                       if ($offset <= 0) {
+                       if ($offset <=  0) {
                                
                                        // access includes ties in result
                                        if ($isaccess) {
                                                $sql = preg_replace(
                                                '/(^\s*select\s+(distinctrow|distinct)?)/i','\\1 '.$this->hasTop.' '.((integer)$nrows).' ',$sql);
 
-                                               if ($secs2cache >= 0) {
+                                               if ($secs2cache != 0) {
                                                        $ret =& $this->CacheExecute($secs2cache, $sql,$inputarr);
                                                } else {
                                                        $ret =& $this->Execute($sql,$inputarr);
                $ADODB_COUNTRECS = false;
                        
                if ($offset>0){
-                       if ($secs2cache >= 0) $rs = &$this->CacheExecute($secs2cache,$sql,$inputarr);
+                       if ($secs2cache != 0) $rs = &$this->CacheExecute($secs2cache,$sql,$inputarr);
                        else $rs = &$this->Execute($sql,$inputarr);
                } else {
-                       if ($secs2cache >= 0) $rs = &$this->CacheExecute($secs2cache,$sql,$inputarr);
+                       if ($secs2cache != 0) $rs = &$this->CacheExecute($secs2cache,$sql,$inputarr);
                        else $rs = &$this->Execute($sql,$inputarr);
                }
                $ADODB_COUNTRECS = $savec;
                }
                return $rv;
        }
+       
+       function &Transpose(&$rs)
+       {
+               $rs2 =& $this->_rs2rs($rs);
+               $false = false;
+               if (!$rs2) return $false;
+               
+               $rs2->_transpose();
+               return $rs2;
+       }
  
        /*
                Calculate the offset of a date for a particular database and generate
                return  '('.$date.'+'.$dayFraction.')';
        }
        
+       
        /**
        *
        * @param sql                    SQL statement
        {
        global $ADODB_CACHE_DIR;
        
+               if ($this->memCache) {
+               global $ADODB_INCLUDED_MEMCACHE;
+               
+                       $key = false;
+                       if (empty($ADODB_INCLUDED_MEMCACHE)) include(ADODB_DIR.'/adodb-memcache.lib.inc.php');
+                       if ($sql) $key = $this->_gencachename($sql.serialize($inputarr),false,true);
+                       FlushMemCache($key, $this->memCacheHost, $this->memCachePort, $this->debug);
+                       return;
+               }
+       
                if (strlen($ADODB_CACHE_DIR) > 1 && !$sql) {
          /*if (strncmp(PHP_OS,'WIN',3) === 0)
             $dir = str_replace('/', '\\', $ADODB_CACHE_DIR);
        {
        global $ADODB_CACHE_DIR;
        
+               if ($this->memCache) {
+                       global $ADODB_INCLUDED_MEMCACHE;
+                       $key = false;
+                       if (empty($ADODB_INCLUDED_MEMCACHE)) include(ADODB_DIR.'/adodb-memcache.lib.inc.php');
+                       if ($sql) $key = $this->_gencachename($sql.serialize($inputarr),false,true);
+                       flushmemCache($key, $this->memCacheHost, $this->memCachePort, $this->debug);
+                       return;
+               }
+
                if (strlen($ADODB_CACHE_DIR) > 1 && !$sql) {
                        if (strncmp(PHP_OS,'WIN',3) === 0) {
                                $cmd = 'del /s '.str_replace('/','\\',$ADODB_CACHE_DIR).'\adodb_*.cache';
        * Assuming that we can have 50,000 files per directory with good performance, 
        * then we can scale to 12.8 million unique cached recordsets. Wow!
        */
-       function _gencachename($sql,$createdir)
+       function _gencachename($sql,$createdir,$memcache=false)
        {
        global $ADODB_CACHE_DIR;
        static $notSafeMode;
                        $mode = $this->fetchMode;
                }
                $m = md5($sql.$this->databaseType.$this->database.$this->user.$mode);
+               if ($memcache) return $m;
                
                if (!isset($notSafeMode)) $notSafeMode = !ini_get('safe_mode');
                $dir = ($notSafeMode) ? $ADODB_CACHE_DIR.'/'.substr($m,0,2) : $ADODB_CACHE_DIR;
                } else
                        $sqlparam = $sql;
                        
+               if ($this->memCache) {
+                       global $ADODB_INCLUDED_MEMCACHE;
+                       if (empty($ADODB_INCLUDED_MEMCACHE)) include(ADODB_DIR.'/adodb-memcache.lib.inc.php');
+                       $md5file = $this->_gencachename($sql.serialize($inputarr),false,true);
+               } else {
                global $ADODB_INCLUDED_CSV;
-               if (empty($ADODB_INCLUDED_CSV)) include(ADODB_DIR.'/adodb-csvlib.inc.php');
-               
-               $md5file = $this->_gencachename($sql.serialize($inputarr),true);
+                       if (empty($ADODB_INCLUDED_CSV)) include(ADODB_DIR.'/adodb-csvlib.inc.php');
+                       $md5file = $this->_gencachename($sql.serialize($inputarr),true);
+               }
+
                $err = '';
                
                if ($secs2cache > 0){
-                       $rs = &csv2rs($md5file,$err,$secs2cache,$this->arrayClass);
+                       if ($this->memCache)
+                               $rs = &getmemCache($md5file,$err,$secs2cache, $this->memCacheHost, $this->memCachePort);
+                       else
+                               $rs = &csv2rs($md5file,$err,$secs2cache,$this->arrayClass);
                        $this->numCacheHits += 1;
                } else {
                        $err='Timeout 1';
                if (!$rs) {
                // no cached rs found
                        if ($this->debug) {
-                               if (get_magic_quotes_runtime()) {
+                               if (get_magic_quotes_runtime() && !$this->memCache) {
                                        ADOConnection::outp("Please disable magic_quotes_runtime - it corrupts cache files :(");
                                }
                                if ($this->debug !== -1) ADOConnection::outp( " $md5file cache failure: $err (see sql below)");
                        
                        $rs = &$this->Execute($sqlparam,$inputarr);
 
+                       if ($rs && $this->memCache) {
+                               $rs = &$this->_rs2rs($rs); // read entire recordset into memory immediately
+                               if(!putmemCache($md5file, $rs, $this->memCacheHost, $this->memCachePort, $this->memCacheCompress, $this->debug)) {
+                                       if ($fn = $this->raiseErrorFn)
+                                               $fn($this->databaseType,'CacheExecute',-32000,"Cache write error",$md5file,$sql,$this);
+                                       if ($this->debug) ADOConnection::outp( " Cache write error");
+                               }
+                       } else
                        if ($rs) {
                                $eof = $rs->EOF;
                                $rs = &$this->_rs2rs($rs); // read entire recordset into memory immediately
                                }  
                                
                        } else
+                       if (!$this->memCache)
                                @unlink($md5file);
                } else {
                        $this->_errorMsg = '';
@@ -3573,6 +3643,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                }
        }
        
+       
        function _close() {}
        
        /**
@@ -3629,7 +3700,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                var $_types;    // the array of types of each column (C B I L M)
                var $_colnames; // names of each column in array
                var $_skiprow1; // skip 1st row because it holds column names
-               var $_fieldarr; // holds array of field objects
+               var $_fieldobjects; // holds array of field objects
                var $canSeek = true;
                var $affectedrows = false;
                var $insertid = false;
@@ -3649,6 +3720,37 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                        $this->fetchMode = $ADODB_FETCH_MODE;
                }
                
+               function _transpose()
+               {
+               global $ADODB_INCLUDED_LIB;
+                       
+                       if (empty($ADODB_INCLUDED_LIB)) include(ADODB_DIR.'/adodb-lib.inc.php');
+                       $hdr = true;
+                       
+                       adodb_transpose($this->_array, $newarr, $hdr);
+                       //adodb_pr($newarr);
+                       
+                       $this->_skiprow1 = false;
+                       $this->_array =& $newarr;
+                       $this->_colnames = $hdr;
+                       
+                       adodb_probetypes($newarr,$this->_types);
+               
+                       $this->_fieldobjects = array();
+                       
+                       foreach($hdr as $k => $name) {
+                               $f = new ADOFieldObject();
+                               $f->name = $name;
+                               $f->type = $this->_types[$k];
+                               $f->max_length = -1;
+                               $this->_fieldobjects[] = $f;
+                               
+                       }
+                       $this->fields = reset($this->_array);
+                       
+                       $this->_initrs();
+                       
+               }
                
                /**
                 * Setup the array.
index a34137e4e8f5334edc13a6d78fb99a961035d08d..046789811d07a59916c0878a3d9966ab8883e548 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 0eb6c9ffb59a140b9ccb40cf8c4947cf243867cf..24db4e9eb76f0114713e9fdeda867ecc5d3c2e78 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 337efb61f53d3e4237ee708de25e5de84a0fe6ed..be4cba44d5f54aabfd86948a87cfc85264088ff4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 27f4faa2aee6c72110429a8fb8ae18ab7187cad3..4163a704351af1d261ce373267b596e8eaafcdbb 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 fc8f20c9c641c2d11cda45beb8b2634211e7d015..ec4becb5a63b8159d90034de4ae55aa65dfeb765 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 b751f1b81f8b0e5efe7f7bca12bea3af49e182d3..8e06b00856aea2686f24af571883f367db534f2d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 2302c7edffda680e8d4aa884db3d539c01f87c54..4252da12d747d2a6cbd46dcff8c1f1167e4a1483 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 f0d03c18f60163cdc2da2c0557b60ccf80bd349f..0310b44eae9a4ae6c033537189ee6cd94b21f7ec 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 db83c6715f69c53cad74b1841a29e1d90a356112..680eeab2d61543fd838ca1a3f7c49375774c5325 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 f2070c02fd4666f34825a0233b6f4db1e75d3883..bc2795fb69d9fd698588b21793470ce9e7ffcff4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 a2b91f912d7b1008a177dcf205b3fbc8a21695b8..507d91ffda67a3311567241ed8b1160d4665b191 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 a601ef48d77ab3800669746c47de052e766a94c6..dd92e5440f5b7f42b11f1999365789b040f58b88 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 a5856bff783991f1b05dfd4671a2e8fb0a566fe9..40f4d3845baf95517e2ef2aeb60058e407b2dd6a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 e70318c8c6cf1b1b565e777a56a15d3e9bc5b6b4..99b585e64b9a9c8ee8c62972a312f7301ee24851 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 004e6c436d86635c45b6903c8ea09f5c8b501b77..678255c73f554743069f385f52bfd0e85e9778be 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 9969e7c90bd872978b40c86703c8f75f9a2f6e01..c573019b21abc2b1ad54fa7bff58734cf3d40d18 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 de93c09b24211e893fe3a2882954bba918409368..32f0b5c76c5f74ea2121df19abaec23267198322 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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. 
@@ -20,6 +20,7 @@ include_once(ADODB_DIR."/drivers/adodb-ibase.inc.php");
 class ADODB_borland_ibase extends ADODB_ibase {
        var $databaseType = "borland_ibase";    
        
+       
        function ADODB_borland_ibase()
        {
                $this->ADODB_ibase();
index aeef91f9d3fa95a15d0d7a95996fae51ce5610da..205cc4e232a9d6cce3afb85e63d1622822ebac67 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 6e692ad1f6ed154f46da12df8bf9e58b4d2f367e..0fe3bb47efc4ee70287fb0d08caca099f7266243 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-  V4.91 2 Aug 2006  (c) 2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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
@@ -120,12 +120,24 @@ class ADODB_db2 extends ADOConnection {
                return $this->_connectionID != false;
        }
 
+       // format and return date string in database timestamp format
+       function DBTimeStamp($ts)
+       {
+               if (empty($ts) && $ts !== 0) return 'null';
+               if (is_string($ts)) $ts = ADORecordSet::UnixTimeStamp($ts);
+               return 'TO_DATE('.adodb_date($this->fmtTimeStamp,$ts).",'YYYY-MM-DD HH24:MI:SS')";
+       }
        
        // Format date column in sql string given an input format that understands Y M D
        function SQLDate($fmt, $col=false)
        {       
        // use right() and replace() ?
                if (!$col) $col = $this->sysDate;
+
+               /* use TO_CHAR() if $fmt is TO_CHAR() allowed fmt */
+               if ($fmt== 'Y-m-d H:i:s')
+                       return 'TO_CHAR('.$col.", 'YYYY-MM-DD HH24:MI:SS')";
+
                $s = '';
                
                $len = strlen($fmt);
@@ -135,31 +147,38 @@ class ADODB_db2 extends ADOConnection {
                        switch($ch) {
                        case 'Y':
                        case 'y':
+                               if ($len==1) return "year($col)";
                                $s .= "char(year($col))";
                                break;
                        case 'M':
+                               if ($len==1) return "monthname($col)";
                                $s .= "substr(monthname($col),1,3)";
                                break;
                        case 'm':
+                               if ($len==1) return "month($col)";
                                $s .= "right(digits(month($col)),2)";
                                break;
                        case 'D':
                        case 'd':
+                               if ($len==1) return "day($col)";
                                $s .= "right(digits(day($col)),2)";
                                break;
                        case 'H':
                        case 'h':
+                               if ($len==1) return "hour($col)";
                                if ($col != $this->sysDate) $s .= "right(digits(hour($col)),2)";        
                                else $s .= "''";
                                break;
                        case 'i':
                        case 'I':
+                               if ($len==1) return "minute($col)";
                                if ($col != $this->sysDate)
                                        $s .= "right(digits(minute($col)),2)";
                                        else $s .= "''";
                                break;
                        case 'S':
                        case 's':
+                               if ($len==1) return "second($col)";
                                if ($col != $this->sysDate)
                                        $s .= "right(digits(second($col)),2)";
                                else $s .= "''";
index 592f944bf79294f8fa7e70e26104d38812eb66d7..1b900be593bc4698975e0dcb81686d14c569b674 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ @version V4.92 29 Aug 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 a7fd2f45c5bcd09e79a8ca5d17805c6660ff4bec..16f1108bd4f6e79145de4e70eab38e06216bf9ce 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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,7 +19,7 @@ class ADODB_firebird extends ADODB_ibase {
        var $databaseType = "firebird"; 
        var $dialect = 3;
        
-       var $sysTimeStamp = "cast('NOW' as timestamp)";
+       var $sysTimeStamp = "CURRENT_TIMESTAMP"; //"cast('NOW' as timestamp)";
        
        function ADODB_firebird()
        {       
index fa2db185b699cc456f36d01ead0fbec173848577..75814e28177e5dfbb5d687a41b277d6fa9214fb2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.  
+V4.92 29 Aug 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.
@@ -47,7 +47,7 @@ class ADODB_ibase extends ADOConnection {
        var $buffers = 0;
        var $dialect = 1;
        var $sysDate = "cast('TODAY' as timestamp)";
-       var $sysTimeStamp = "cast('NOW' as timestamp)";
+       var $sysTimeStamp = "CURRENT_TIMESTAMP"; //"cast('NOW' as timestamp)";
        var $ansiOuter = true;
        var $hasAffectedRows = false;
        var $poorAffectedRows = true;
index b46cb62371523f1091e3251b207ea80923788a07..e1923dd542505f7172aa83b47c326a06b2e58cdf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+* @version V4.92 29 Aug 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 2145f0d0f5fceed4988db8ebc14078aee5fc1514..299b4c622fbaf52bed55a716733d15e36849a703 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.92 29 Aug 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 2f27ac7b8f595a4c8c9c7a7151bb186ff3c2f303..01a631cce156fa2f991443c203746ddcd08b923d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 3e433d8ab8202e6ec16cc85c875a7063af577dbb..c34e71b75bd4dc399cfa4980459c2b2d88c1e7dd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 e082c509e27f4d0926d2096166e8efa101532ad0..132abf39e778b20f73d228b37c8476f32ef8205d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+* @version V4.92 29 Aug 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 349af3ce7cc163955f76554af506d9e94a73735e..9448d340943d260599418c0a659e5ab9dbe59821 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 934f64f31576ebdc5f170268ea07f4bdf733686f..61073474aa251f2eb66a7a086d3feae8aa991424 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 4074432c596a8f42ef92f3bffd593fc5002c09f3..16118b245945f566b0c624f9d8bfba4adfdf55fc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 ba5e912bb516f7439bfd063869308877106a89a0..e26903ac4ff08b2b4fbb4b374a3f587405b1f167 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 0b7730a3e69519e06e63476bd9be5e25332638a7..e3de3177ac960b53a14aa35c9c0d54d92eb38454 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-  version V4.91 2 Aug 2006 (c) 2000-2006 John Lim. All rights reserved.
+  version V4.92 29 Aug 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, 
@@ -75,6 +75,7 @@ class ADODB_oci8 extends ADOConnection {
        var $noNullStrings = false;
        var $connectSID = false;
        var $_bind = false;
+       var $_nestedSQL = true;
        var $_hasOCIFetchStatement = false;
        var $_getarray = false; // currently not working
        var $leftOuter = '';  // oracle wierdness, $col = $value (+) for LEFT OUTER, $col (+)= $value for RIGHT OUTER
index d5f2458955ebce6677307717f363fa446d17bb71..b9c402448ae090ff49c9fe95170cb251855543a4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 faf27382e89457a713adc5e0f7a371713641f59e..ff6e9cb6cdb02781967c29b4b0a0a457d24eff53 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.92 29 Aug 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 1112027e29e05861a18bcf0b5bfbe0cedf203fea..0e97b80eaa9d998357c93366e6088b15666b8f99 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 104637ccf6be4ae1bfcbd4f22802f3ad03e6c12e..89e0a1cb6c3302bc08739437b038cea2356ed898 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 31537f4f959f54a76b3c2378d359c79657019aa8..27a749cd8f31934a66f2472e7b0d1c33b0a0bdde 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 74e9c8779ad9733d73bd5d60cca8be82905a93ee..4c068a9904462a1a5ed3cb579ab6e5f5f7204f05 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 9ea2d23a8378ec9d5ac4aeedc98ecb3c4aa8f993..261a7fee24c1cb6e4d04bdf74f02e73655ccd180 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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.
@@ -150,6 +150,8 @@ class ADODB_odbtp extends ADOConnection{
     function _connect($HostOrInterface, $UserOrDSN='', $argPassword='', $argDatabase='')
        {
                $this->_connectionID = @odbtp_connect($HostOrInterface,$UserOrDSN,$argPassword,$argDatabase);
+               odbtp_convert_datetime($this->_connectionID,true);
+               
                if ($this->_connectionID === false) {
                        $this->_errorMsg = $this->ErrorMsg() ;
                        return false;
index d943b7069fa6d981368ed002a83f7496d0fe5c48..11a793ca9b955cee5b71089c145ca30c019fbec7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-       V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+       V4.92 29 Aug 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 7472647fa6798ed2c40ed0d84ed5a9d99a0be225..83bad7a05e29af24ccce87d8b12732a9683e4351 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 788d7fb65f757abb238e8bbcd4f8c27118530a44..1c8a73c885b4f12422b448411f165f5d2b1794ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 92a5cfa344298726ff0d5340cbee480c7338b887..3a2164fb1c07e011cd901c5bca53fe2549a8044b 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 5c49b37febc3d1ae6571518b292e1f4b07a0ad1f..0ef225bf01a5bbc67a6d9f9503c417d4d258d835 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 af594a042c5ae252da10e597cc10ed7eb818baa4..1d4a08602759502d303901502a1b230711c1a7e9 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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.
@@ -26,7 +26,7 @@ class ADODB_pdo_oci extends ADODB_pdo_base {
        function _init($parentDriver)
        {
                $parentDriver->_bindInputArray = true;
-               
+               $parentDriver->_nestedSQL = true;
                if ($this->_initdate) {
                        $parentDriver->Execute("ALTER SESSION SET NLS_DATE_FORMAT='".$this->NLS_DATE_FORMAT."'");
                }
index 32f12035cf90a36a227347b1c559b193b4d8299a..8f378377f6aaa042b5f65fbccd54c188bb43c7cc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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.
@@ -59,6 +59,7 @@ WHERE relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s'))
        
                $parentDriver->hasTransactions = false; ## <<< BUG IN PDO pgsql driver
                $parentDriver->hasInsertID = true;
+               $parentDriver->_nestedSQL = true;
        }
        
        function ServerInfo()
index 0e60eb1c984ce13466a3c7abf7f89f5b58a2c5f2..fc356f9676d6dddae5ae9530ef6996cbd4183167 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.92 29 Aug 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 468e2fd1bf4e55171aceaa944cf5780e1ad5e572..417be51ccc1b7d05ee6076aa540a007825cc0fc4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.92 29 Aug 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.
@@ -657,7 +657,7 @@ WHERE (c2.relname=\'%s\' or c2.relname=lower(\'%s\'))';
                        if ($str)  {
                                $host = split(":", $str);
                                if ($host[0]) $str = "host=".adodb_addslashes($host[0]);
-                               else $str = 'host=localhost';
+                               else $str = '';
                                if (isset($host[1])) $str .= " port=$host[1]";
                                else if (!empty($this->port)) $str .= " port=".$this->port;
                        }
index 6ccb6da8fae31271bf0094159b1fe65b8fb8a848..c6e0b8253528602e808b2287d783a17d93c8a08e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.92 29 Aug 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,6 +29,12 @@ class ADODB_postgres7 extends ADODB_postgres64 {
                        $this->rsPrefix .= 'assoc_';
                }
                $this->_bindInputArray = PHP_VERSION >= 5.1;
+               
+               $info = $zthis->ServerInfo();
+               $this->pgVersion = (float) substr($info['version'],0,3);
+               if ($this->pgVersion >= 7.1) { // good till version 999
+                       $this->_nestedSQL = true;
+               }
        }
 
        
index 692264fc7d5ab7aa09b48302d7d8d8984f1d954f..b3390a4176936e04bfae3644cb3fe992b8a796e1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ V4.92 29 Aug 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 f71b72ce5524a358fa891c479f00225cca916aee..476d3a384bbe94d3f543f4e8b5a6f130ef34f5bf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 6f0c621d4e6a071625862c06800179861ed32463..b7496d821d2b9323b237ab05438e256f8edd8360 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 fa54d98c5cf25cf33d84c0cda9058151947eea7a..a6b1a5be7fbd71f706e077266dacfb9ed6485e1a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-version V4.91 2 Aug 2006 (c) 2000-2006  John Lim (jlim#natsoft.com.my).  All rights
+version V4.92 29 Aug 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 d4f81911efeb668cbc5495e720576a92bac58652..62710e63744c78ec5085006473cec5a1ee4fac39 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 1994547e87c83d78aaa703d38ce08ebcd2de1eb8..3b20bd336104df122d52973e2bc63af817a093fc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 9c3f5b6a2e23b31eed91286ffbd1f702ab99ec28..d9b3e20341918ab305d48648b6e451388f6a6556 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim. All rights reserved.
+V4.92 29 Aug 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 2c3385d26d7d4fd40f754513c33cf3c92aed23dc..a2627e53c5fc3d29b1e2bc84ccf3a373340edd35 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 a8705cb1b8c9cb265eb3005a494b5d6a6be6fc5f..9f0cc0f5b7193ce20ed84b52178d5e28705a6279 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 456518964772c2c4f561c1a49c69af823796a0eb..c7e8a5bafac8f20d0464e27062b8adf597e5d712 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 4589ae75643f39a95672b775403898a9f8b27d39..e5297b4f4613ecb83d3261ce9d84d68baf6fbe52 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 d7f791511a7a2063097c074a0aba87eeee64e9ac..b6250be44a81147325b594348869d85ec254a3a6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 c0005391da500f174ceddae35a16630826459832..51c21b2fd7b841424ad91b7cb47ca94283a72d38 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 a1db9d8f34ba8fc85b68efe979010e395dc677d5..a56901a6d1a9759cd34823d5bc4d3858f35ec654 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 f50ac6233eb5bfd58100f5bbd9e0c58f053aad71..e5339896ec6ae647784b467b9b2f2a8ccbcfca09 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 4d05dd177074d42e23b832112c3ccc2ffe41116c..3f7d9b8014e620ec20ae9c59b399f27d513b8b12 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 d7fb16659fb476957256762782630cb910cb9b2a..b86e8b9764b1d50fe7ceb8733f9c751802edd6f4 100644 (file)
@@ -1,4 +1,4 @@
-Description of ADODB v4.91 library import into Moodle
+Description of ADODB v4.9 library import into Moodle
 
 Removed:
  * contrib
@@ -13,4 +13,4 @@ Added:
  * readme_moodle.txt - this file ;-)
 
 skodak
-21 August 2006
\ No newline at end of file
+29 August 2006
\ No newline at end of file
index d316e3d2d2743334a1503bbb97155dd680cf03f4..59fba6bb2ae563b09dbee560db731534785b93bf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 2a7d82de94dcda61fc9f6a682dcdb4b9808c33a4..a7a7b72b7d37b62ba90fe1dc23b4d81e6b77739b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 8612a761b739373349525754fb6f211104e08e03..d8a280b4584105b6ac7849a0590617cf28b687f1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 aa80a625e164a58b6bfaf30fd4a9fd007d09f57a..2da0178ac4a1680f9811c0d31e2bcc787bd20697 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 51b85ad0bb3cca991fbeaf5d9f6dc0ede3065939..43e913120b158a6cfe465e69c6464281ecc6dd4e 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 9d1faa5325643b8f9267a82b4e89df76e1b38be9..f80d2e21b243ce616a0ee2ddfa64e6da10c7a3c0 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 fd3ef86bbd5ae3347bc4b0bfd38559d95b5dd938..f803b6eb653f26809eaadcd000307d5cde0e021f 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 1ecd756d5870d153390f74482e134a95bc929794..70eb953bcdb1166520c988a3b34b910f5acaaa00 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 959eb8aba7993269a1905f090a3a9c9be2ddf5a0..afe6da70c4f0e29f59a3afe18ee9e3c14a535211 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 27b58a467927dac0982c1d4b8e2d158c612c597f..79e6120a3260552005e186dbeb7fc5320dee6680 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 512c87bad3317bdecfc5101a1b470c78a806f01c..66b467078507b9c38a4f79e5d1273366e94344be 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 4bf1e8a6a3915b938f5f6411e5b8056e6d678a49..8a65666fd229e196e0af30d734553681f902a1ce 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 01c5686565ec773008a3a275ae033c3bcae5cd9c..30740381d729bc8d86e106cc5c682971cfb648fb 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 2177a3c7d65a5ce5b674c1915ec0773daa43b87f..47ffcf6bc6180a921b9906c63fd2f26de7a7b6ce 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 6a40fbe51894a63216b0cf6a647f838b2570a3bb..e98bc0d663b406aeb7789e1d6b0abfcab2de3bd6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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 4e36293f5542fb0367036c6f0b520163c0263d96..585101909a47909ee8a8e95e1b1ba4121fec7cca 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+V4.92 29 Aug 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 bb4a28360895f299f62971152be8664f1f1f0d26..cbfb483a360f214b6fad47c044c6695c569c16cd 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /** 
- * @version V4.91 2 Aug 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+ * @version V4.92 29 Aug 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 199e7b4e564719f05dc18ad9492a3a6ebf7cd2e3..9f35396d8c062101d58ff99bf37f07e90014af9e 100644 (file)
@@ -1,6 +1,6 @@
 <?php 
 /*
-  V4.91 2 Aug 2006  (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved.
+  V4.92 29 Aug 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.