MDL-24551 importing latest adodb 5.11
authorPetr Skoda <skodak@moodle.org>
Wed, 6 Oct 2010 15:31:49 +0000 (15:31 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 6 Oct 2010 15:31:49 +0000 (15:31 +0000)
120 files changed:
lib/adodb/adodb-active-record.inc.php
lib/adodb/adodb-active-recordx.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
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-time.inc.php
lib/adodb/adodb-xmlschema.inc.php
lib/adodb/adodb-xmlschema03.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-mssqlnative.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-sapdb.inc.php
lib/adodb/datadict/datadict-sqlite.inc.php [new file with mode: 0644]
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-db2oci.inc.php
lib/adodb/drivers/adodb-db2ora.inc.php [new file with mode: 0644]
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-mssql_n.inc.php
lib/adodb/drivers/adodb-mssqlnative.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-mysqlpo.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-pdo_sqlite.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/lang/adodb-ar.inc.php [deleted file]
lib/adodb/lang/adodb-bg.inc.php [deleted file]
lib/adodb/lang/adodb-bgutf8.inc.php [deleted file]
lib/adodb/lang/adodb-ca.inc.php [deleted file]
lib/adodb/lang/adodb-cn.inc.php [deleted file]
lib/adodb/lang/adodb-cz.inc.php [deleted file]
lib/adodb/lang/adodb-da.inc.php [deleted file]
lib/adodb/lang/adodb-de.inc.php [deleted file]
lib/adodb/lang/adodb-es.inc.php [deleted file]
lib/adodb/lang/adodb-esperanto.inc.php [deleted file]
lib/adodb/lang/adodb-fa.inc.php [deleted file]
lib/adodb/lang/adodb-fr.inc.php [deleted file]
lib/adodb/lang/adodb-hu.inc.php [deleted file]
lib/adodb/lang/adodb-it.inc.php [deleted file]
lib/adodb/lang/adodb-nl.inc.php [deleted file]
lib/adodb/lang/adodb-pl.inc.php [deleted file]
lib/adodb/lang/adodb-pt-br.inc.php [deleted file]
lib/adodb/lang/adodb-ro.inc.php [deleted file]
lib/adodb/lang/adodb-ru1251.inc.php [deleted file]
lib/adodb/lang/adodb-sv.inc.php [deleted file]
lib/adodb/lang/adodb-uk1251.inc.php [deleted file]
lib/adodb/lang/adodb_th.inc.php [deleted file]
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-mssqlnative.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/toexport.inc.php
lib/adodb/tohtml.inc.php

index 55a89bb..845c656 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-@version V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+@version V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). All rights reserved.
   Latest version is available at http://adodb.sourceforge.net
  
   Released under both BSD license and Lesser GPL library license. 
@@ -345,8 +345,8 @@ class ADODB_Active_Record {
                $tableat = $this->_tableat;
                if (!$forceUpdate && !empty($tables[$tableat])) {
 
-                       $tobj = $tables[$tableat];
-                       foreach($tobj->flds as $name => $fld) {
+                       $acttab = $tables[$tableat];
+                       foreach($acttab->flds as $name => $fld) {
                        if ($ADODB_ACTIVE_DEFVALS && isset($fld->default_value)) 
                                $this->$name = $fld->default_value;
                        else
@@ -364,6 +364,14 @@ class ADODB_Active_Record {
                        if ($acttab->_created + $ADODB_ACTIVE_CACHESECS - (abs(rand()) % 16) > time()) { 
                                // abs(rand()) randomizes deletion, reducing contention to delete/refresh file
                                // ideally, you should cache at least 32 secs
+                               
+                               foreach($acttab->flds as $name => $fld) {
+                                       if ($ADODB_ACTIVE_DEFVALS && isset($fld->default_value)) 
+                                               $this->$name = $fld->default_value;
+                                       else
+                                               $this->$name = null;
+                               }
+       
                                $activedb->tables[$table] = $acttab;
                                
                                //if ($db->debug) ADOConnection::outp("Reading cached active record file: $fname");
@@ -621,11 +629,13 @@ class ADODB_Active_Record {
        function doquote(&$db, $val,$t)
        {
                switch($t) {
-               case 'D':
+               case 'L':
+                       if (strpos($db->databaseType,'postgres') !== false) return $db->qstr($val);
+               case 'D':       
                case 'T':
                        if (empty($val)) return 'null';
                
-               case 'B':
+               case 'B':       
                case 'N':
                case 'C':
                case 'X':
@@ -889,10 +899,10 @@ class ADODB_Active_Record {
                                        }
                                }
                        }
-                       
-                       if (isset($this->_original[$i]) && $val == $this->_original[$i]) {
+
+                       if (isset($this->_original[$i]) && strcmp($val,$this->_original[$i]) == 0) {
                                continue;
-                       }                       
+                       }
                        $valarr[] = $val;
                        $pairs[] = $this->_QName($name,$db).'='.$db->Param($cnt);
                        $cnt += 1;
index 6d270b6..9b526ad 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-@version V5.06 29 Sept 2008   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+@version V5.06 29 Sept 2008   (c) 2000-2010 John Lim (jlim#natsoft.com). All rights reserved.
   Latest version is available at http://adodb.sourceforge.net
  
   Released under both BSD license and Lesser GPL library license. 
index 7b1c9e1..1c0d081 100644 (file)
@@ -8,7 +8,7 @@ $ADODB_INCLUDED_CSV = 1;
 
 /* 
 
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 19500ca..69060c5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -589,6 +589,8 @@ class ADODB_DataDict {
 
                return $sql;
        }
+               
+       
        
        function _GenFields($flds,$widespacing=false)
        {
@@ -913,6 +915,21 @@ class ADODB_DataDict {
                return $newopts;
        }
        
+       
+       function _getSizePrec($size)
+       {
+               $fsize = false;
+               $fprec = false;
+               $dotat = strpos($size,'.');
+               if ($dotat === false) $dotat = strpos($size,',');
+               if ($dotat === false) $fsize = $size;
+               else {
+                       $fsize = substr($size,0,$dotat);
+                       $fprec = substr($size,$dotat+1);
+               }
+               return array($fsize, $fprec);
+       }
+       
        /**
        "Florian Buzin [ easywe ]" <florian.buzin#easywe.de>
        
@@ -958,9 +975,16 @@ class ADODB_DataDict {
                                        $c = $cols[$k];
                                        $ml = $c->max_length;
                                        $mt = $this->MetaType($c->type,$ml);
+                                       
+                                       if (isset($c->scale)) $sc = $c->scale;
+                                       else $sc = 99; // always force change if scale not known.
+                                       
+                                       if ($sc == -1) $sc = false;
+                                       list($fsize, $fprec) = $this->_getSizePrec($v['SIZE']);
+
                                        if ($ml == -1) $ml = '';
                                        if ($mt == 'X') $ml = $v['SIZE'];
-                                       if (($mt != $v['TYPE']) ||  $ml != $v['SIZE'] || (isset($v['AUTOINCREMENT']) && $v['AUTOINCREMENT'] != $obj->auto_increment)) {
+                                       if (($mt != $v['TYPE']) || ($ml != $fsize || $sc != $fprec) || (isset($v['AUTOINCREMENT']) && $v['AUTOINCREMENT'] != $obj->auto_increment)) {
                                                $holdflds[$k] = $v;
                                        }
                                } else {
index ae0b9e3..6ec614d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.06 16 Oct 2008  (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -99,7 +99,7 @@ function adodb_error_pg($errormsg)
             '/ttribute [\"\'].*[\"\'] not found|Relation [\"\'].*[\"\'] does not have attribute [\"\'].*[\"\']/i' => DB_ERROR_NOSUCHFIELD,
             '/parser: parse error at or near \"/i'   => DB_ERROR_SYNTAX,
             '/referential integrity violation/i'     => DB_ERROR_CONSTRAINT,
-                       '/Relation [\"\'].*[\"\'] already exists|Cannot insert a duplicate key into (a )?unique index.*|duplicate key violates unique constraint/i'     
+                       '/Relation [\"\'].*[\"\'] already exists|Cannot insert a duplicate key into (a )?unique index.*|duplicate key.*violates unique constraint/i'     
                                 => DB_ERROR_ALREADY_EXISTS
         );
        reset($error_regexps);
index 3cf68a4..b760089 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d1e2eb9..6882e0a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.06 16 Oct 2008  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 b444706..65f8943 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * @version V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 0ecea26..e8b5e57 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 9b46ded..6b2e891 100644 (file)
@@ -10,7 +10,7 @@ global $ADODB_INCLUDED_LIB;
 $ADODB_INCLUDED_LIB = 1;
 
 /* 
- @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim\@natsoft.com.my). All rights reserved.
+ @version V5.06 16 Oct 2008  (c) 2000-2010 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. 
@@ -455,9 +455,13 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)
        
        if (preg_match('/\sLIMIT\s+[0-9]+/i',$sql,$limitarr)) $rewritesql .= $limitarr[0];
                
-       $rstest = $zthis->Execute($rewritesql,$inputarr);
-       if (!$rstest) $rstest = $zthis->Execute($sql,$inputarr);
-       
+       if ($secs2cache) {
+               $rstest = $zthis->CacheExecute($secs2cache,$rewritesql,$inputarr);
+               if (!$rstest) $rstest = $zthis->CacheExecute($secs2cache,$sql,$inputarr);
+       } else {
+               $rstest = $zthis->Execute($rewritesql,$inputarr);
+               if (!$rstest) $rstest = $zthis->Execute($sql,$inputarr);
+       }
        if ($rstest) {
                        $qryRecs = $rstest->RecordCount();
                if ($qryRecs == -1) { 
index dad4c38..e666d56 100644 (file)
@@ -11,7 +11,7 @@ if (empty($ADODB_INCLUDED_CSV)) include(ADODB_DIR.'/adodb-csvlib.inc.php');
 
 /* 
 
-  V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.06 16 Oct 2008  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d6980c1..b57ee95 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-       V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+       V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 6563704..04441a7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.06 16 Oct 2008  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 bd50c8f..d1a86eb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 aa8fa0f..e46a74d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 0763895..d62f678 100644 (file)
@@ -1074,6 +1074,9 @@ global $ADODB_DATETIME_CLASS;
        */
        for ($i=0; $i < $max; $i++) {
                switch($fmt[$i]) {
+               case 'e':
+                       $dates .= date('e');
+                       break;
                case 'T': 
                        if ($ADODB_DATETIME_CLASS) {
                                $dt = new DateTime();
index 92c81af..34cc6f9 100644 (file)
@@ -149,7 +149,7 @@ class dbObject {
                
        }
        
-       function create() {
+       function create(&$xmls) {
                return array();
        }
        
@@ -1301,10 +1301,11 @@ class adoSchema {
        *
        * @param object $db ADOdb database connection object.
        */
-       function adoSchema( &$db ) {
+       function adoSchema( $db ) {
                // Initialize the environment
                $this->mgq = get_magic_quotes_runtime();
-               set_magic_quotes_runtime(0);
+               ini_set("magic_quotes_runtime", 0);
+               #set_magic_quotes_runtime(0);
                
                $this->db = $db;
                $this->debug = $this->db->debug;
@@ -2193,7 +2194,8 @@ class adoSchema {
        * @deprecated adoSchema now cleans up automatically.
        */
        function Destroy() {
-               set_magic_quotes_runtime( $this->mgq );
+               ini_set("magic_quotes_runtime", $this->mgq );
+               #set_magic_quotes_runtime( $this->mgq );
                unset( $this );
        }
 }
index f112f7b..f5c7192 100644 (file)
@@ -167,7 +167,7 @@ class dbObject {
                
        }
        
-       function create() {
+       function create(&$xmls) {
                return array();
        }
        
@@ -1405,10 +1405,11 @@ class adoSchema {
        *
        * @param object $db ADOdb database connection object.
        */
-       function adoSchema( &$db ) {
+       function adoSchema( $db ) {
                // Initialize the environment
                $this->mgq = get_magic_quotes_runtime();
-               set_magic_quotes_runtime(0);
+               #set_magic_quotes_runtime(0);
+               ini_set("magic_quotes_runtime", 0);
                
                $this->db = $db;
                $this->debug = $this->db->debug;
@@ -2374,7 +2375,8 @@ class adoSchema {
        * @deprecated adoSchema now cleans up automatically.
        */
        function Destroy() {
-               set_magic_quotes_runtime( $this->mgq );
+               ini_set("magic_quotes_runtime", $this->mgq );
+               #set_magic_quotes_runtime( $this->mgq );
                unset( $this );
        }
 }
index 9752d10..2da3777 100644 (file)
@@ -14,7 +14,7 @@
 /**
        \mainpage
        
-        @version V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+        @version V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 = 'V5.10 10 Nov 2009  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved. Released BSD & LGPL.';
+               $ADODB_vers = 'V5.11 5 May 2010  (c) 2000-2010 John Lim (jlim#natsoft.com). All rights reserved. Released BSD & LGPL.';
        
                /**
                 * Determines whether recordset->RecordCount() is used. 
        var $fetchMode=false;
        
        var $null2null = 'null'; // in autoexecute/getinsertsql/getupdatesql, this value will be converted to a null
+       var $bulkBind = false; // enable 2D Execute array
         //
         // PRIVATE VARS
         //
        {
        global $ADODB_vers;
        
-               return (float) substr($ADODB_vers,1);
+               $ok = preg_match( '/^[Vv]([0-9\.]+)/', $ADODB_vers, $matches );
+               if (!$ok) return (float) substr($ADODB_vers,1);
+               else return $matches[1];
        }
        
        /**
        {
                if ($argHostname != "") $this->host = $argHostname;
                if ($argUsername != "") $this->user = $argUsername;
-               if ($argPassword != "") $this->password = $argPassword; // not stored for security reasons
+               if ($argPassword != "") $this->password = 'not stored'; // not stored for security reasons
                if ($argDatabaseName != "") $this->database = $argDatabaseName;         
                
                $this->_isPersistentConnection = false; 
                        
                if ($forceNew) {
-                       if ($rez=$this->_nconnect($this->host, $this->user, $this->password, $this->database)) return true;
+                       if ($rez=$this->_nconnect($this->host, $this->user, $argPassword, $this->database)) return true;
                } else {
-                        if ($rez=$this->_connect($this->host, $this->user, $this->password, $this->database)) return true;
+                        if ($rez=$this->_connect($this->host, $this->user, $argPassword, $this->database)) return true;
                }
                if (isset($rez)) {
                        $err = $this->ErrorMsg();
                
                if ($argHostname != "") $this->host = $argHostname;
                if ($argUsername != "") $this->user = $argUsername;
-               if ($argPassword != "") $this->password = $argPassword;
+               if ($argPassword != "") $this->password = 'not stored';
                if ($argDatabaseName != "") $this->database = $argDatabaseName;         
                        
                $this->_isPersistentConnection = true;  
                
-               if ($rez = $this->_pconnect($this->host, $this->user, $this->password, $this->database)) return true;
+               if ($rez = $this->_pconnect($this->host, $this->user, $argPassword, $this->database)) return true;
                if (isset($rez)) {
                        $err = $this->ErrorMsg();
                        if (empty($err)) $err = "Connection error to server '$argHostname' with user '$argUsername'";
        *  @param $table        name of table to lock
        *  @param $where        where clause to use, eg: "WHERE row=12". If left empty, will escalate to table lock
        */
-       function RowLock($table,$where,$col='1 as ignore')
+       function RowLock($table,$where,$col='1 as adodbignore')
        {
                return false;
        }
                        
                        $element0 = reset($inputarr);
                        # is_object check because oci8 descriptors can be passed in
-                       $array_2d = is_array($element0) && !is_object(reset($element0));
+                       $array_2d = $this->bulkBind && is_array($element0) && !is_object(reset($element0));
                        //remove extra memory copy of input -mikefedyk
                        unset($element0);
                        
@@ -4149,11 +4152,25 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
                                // special handling of oracle, which might not have host
                                $fakedsn = str_replace('@/','@adodb-fakehost/',$fakedsn);
                        }
+                       
+                        if ((strpos($origdsn, 'sqlite')) !== FALSE) {
+             // special handling for SQLite, it only might have the path to the database file.
+             // If you try to connect to a SQLite database using a dsn like 'sqlite:///path/to/database', the 'parse_url' php function
+             // will throw you an exception with a message such as "unable to parse url"
+                list($scheme, $path) = explode('://', $origdsn);
+                $dsna['scheme'] = $scheme;
+                               if ($qmark = strpos($path,'?')) {
+                                       $dsn['query'] = substr($path,$qmark+1);
+                                       $path = substr($path,0,$qmark);
+                               }
+               $dsna['path'] = '/' . urlencode($path);
+                       } else
                                $dsna = @parse_url($fakedsn);
+                               
                        if (!$dsna) {
                                return $false;
                        }
-                               $dsna['scheme'] = substr($origdsn,0,$at);
+                       $dsna['scheme'] = substr($origdsn,0,$at);
                        if ($at2 !== FALSE) {
                                $dsna['host'] = '';
                        }
index 8cd25d5..294b8ae 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 9177a1b..2aec30f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 2a2a064..1f1d252 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 53a0fdf..b6e10ab 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 e3efec1..e86b4a5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 63a0c01..4ab60d3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 57652ab..b35284f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 5162c6f..8e43420 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 9551e4a..82b1af6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 25eca9a..7f6ccc4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 b9a984f..dfeb98c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d4143d1..888922b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V4.50 6 July 2004  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V4.50 6 July 2004  (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
diff --git a/lib/adodb/datadict/datadict-sqlite.inc.php b/lib/adodb/datadict/datadict-sqlite.inc.php
new file mode 100644 (file)
index 0000000..c53d977
--- /dev/null
@@ -0,0 +1,89 @@
+<?php
+
+/**
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
+       
+  Set tabs to 4 for best viewing.
+       SQLite datadict Andrei Besleaga
+*/
+
+// security - hide paths
+if (!defined('ADODB_DIR')) die();
+
+class ADODB2_sqlite extends ADODB_DataDict {
+       var $databaseType = 'sqlite';
+       var $seqField = false;
+       var $addCol=' ADD COLUMN';
+       var $dropTable = 'DROP TABLE IF EXISTS %s';
+       var $dropIndex = 'DROP INDEX IF EXISTS %s';
+       var $renameTable = 'ALTER TABLE %s RENAME TO %s';
+       
+       
+
+       function ActualType($meta)
+       {
+               switch(strtoupper($meta)) {
+               case 'C': return 'VARCHAR'; //  TEXT , TEXT affinity
+               case 'XL':return 'LONGTEXT'; //  TEXT , TEXT affinity
+               case 'X': return 'TEXT'; //  TEXT , TEXT affinity
+               
+               case 'C2': return 'VARCHAR'; //  TEXT , TEXT affinity
+               case 'X2': return 'LONGTEXT'; //  TEXT , TEXT affinity
+               
+               case 'B': return 'LONGBLOB'; //  TEXT , NONE affinity , BLOB
+                       
+               case 'D': return 'DATE'; // NUMERIC , NUMERIC affinity
+               case 'T': return 'DATETIME'; // NUMERIC , NUMERIC affinity
+               case 'L': return 'TINYINT'; // NUMERIC , INTEGER affinity
+               
+               case 'R': 
+               case 'I4':
+               case 'I': return 'INTEGER'; // NUMERIC , INTEGER affinity
+               case 'I1': return 'TINYINT'; // NUMERIC , INTEGER affinity
+               case 'I2': return 'SMALLINT'; // NUMERIC , INTEGER affinity
+               case 'I8': return 'BIGINT'; // NUMERIC , INTEGER affinity
+               
+               case 'F': return 'DOUBLE'; // NUMERIC , REAL affinity
+               case 'N': return 'NUMERIC'; // NUMERIC , NUMERIC affinity
+               default:
+                       return $meta;
+               }
+       }
+       
+       // return string must begin with space
+       function _CreateSuffix($fname,$ftype,$fnotnull,$fdefault,$fautoinc,$fconstraint,$funsigned)
+       {       
+               $suffix = '';
+               if ($funsigned) $suffix .= ' UNSIGNED';
+               if ($fnotnull) $suffix .= ' NOT NULL';
+               if (strlen($fdefault)) $suffix .= " DEFAULT $fdefault";
+               if ($fautoinc) $suffix .= ' AUTOINCREMENT';
+               if ($fconstraint) $suffix .= ' '.$fconstraint;
+               return $suffix;
+       }
+       
+       function AlterColumnSQL($tabname, $flds)
+       {
+               if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported natively by SQLite");
+               return array();
+       }
+       
+       function DropColumnSQL($tabname, $flds)
+       {
+               if ($this->debug) ADOConnection::outp("DropColumnSQL not supported natively by SQLite");
+               return array();
+       }
+       
+       function RenameColumnSQL($tabname,$oldcolumn,$newcolumn,$flds='')
+       {
+               if ($this->debug) ADOConnection::outp("RenameColumnSQL not supported natively by SQLite");
+               return array(); 
+       }
+       
+}
+?>
index a3fd0bc..fea2d98 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 36645ee..ef94e9b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 552e577..671e858 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 51beb65..30d192d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -118,7 +118,7 @@ class ADODB_ado extends ADOConnection {
                $dbc->CursorLocation = $this->_cursor_location;
                return  $dbc->State > 0;
                } catch (exception $e) {
-                       if ($this->debug);echo "<pre>",$argHostname,"\n",$e,"</pre>\n";
+                       if ($this->debug) echo "<pre>",$argHostname,"\n",$e,"</pre>\n";
                }
                
                return false;
index 3a827a5..5b30f44 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 0831984..dd2f58a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 301fd19..b19210f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 fd52b60..5606ca6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 5bd9ebe..faf6c0a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-  V5.06 16 Oct 2008   (c) 2006 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 (jlim#natsoft.com). 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
@@ -210,31 +210,19 @@ class ADODB_db2 extends ADOConnection {
        
        function ServerInfo()
        {
-       
-               if (!empty($this->host) && ADODB_PHPVER >= 0x4300) {
-                       $dsn = strtoupper($this->host);
-                       $first = true;
-                       $found = false;
-                       
-                       if (!function_exists('db2_data_source')) return false;
-                       
-                       while(true) {
-                               
-                               $rez = @db2_data_source($this->_connectionID,
-                                       $first ? SQL_FETCH_FIRST : SQL_FETCH_NEXT);
-                               $first = false;
-                               if (!is_array($rez)) break;
-                               if (strtoupper($rez['server']) == $dsn) {
-                                       $found = true;
-                                       break;
-                               }
-                       } 
-                       if (!$found) return ADOConnection::ServerInfo();
-                       if (!isset($rez['version'])) $rez['version'] = '';
-                       return $rez;
+               $row = $this->GetRow("SELECT service_level, fixpack_num FROM TABLE(sysproc.env_get_inst_info()) 
+                       as INSTANCEINFO");
+
+               
+               if ($row) {             
+                       $info['version'] = $row[0].':'.$row[1];
+                       $info['fixpack'] = $row[1];
+                       $info['description'] = '';
                } else {
                        return ADOConnection::ServerInfo();
                }
+               
+               return $info;
        }
        
        function CreateSequence($seqname='adodbseq',$start=1)
index 32f2132..6afa944 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
diff --git a/lib/adodb/drivers/adodb-db2ora.inc.php b/lib/adodb/drivers/adodb-db2ora.inc.php
new file mode 100644 (file)
index 0000000..e02e269
--- /dev/null
@@ -0,0 +1,80 @@
+<?php
+/* 
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
+Set tabs to 4 for best viewing.
+  
+  Latest version is available at http://adodb.sourceforge.net
+  
+  Microsoft Visual FoxPro data driver. Requires ODBC. Works only on MS Windows.
+*/
+
+// security - hide paths
+if (!defined('ADODB_DIR')) die();
+include(ADODB_DIR."/drivers/adodb-db2.inc.php");
+
+
+if (!defined('ADODB_DB2OCI')){
+define('ADODB_DB2OCI',1);
+
+
+function _colontrack($p)
+{
+global $_COLONARR,$_COLONSZ;
+       $v = (integer) substr($p,1);
+       if ($v > $_COLONSZ) return $p;
+       $_COLONARR[] = $v;
+       return '?';
+}
+
+function _colonscope($sql,$arr)
+{
+global $_COLONARR,$_COLONSZ;
+
+       $_COLONARR = array();
+       $_COLONSZ = sizeof($arr);
+       
+       $sql2 = preg_replace("/(:[0-9]+)/e","_colontrack('\\1')",$sql);
+       
+       if (empty($_COLONARR)) return array($sql,$arr);
+       
+       foreach($_COLONARR as $k => $v) {
+               $arr2[] = $arr[$v]; 
+       }
+       
+       return array($sql2,$arr2);
+}
+
+class ADODB_db2oci extends ADODB_db2 {
+       var $databaseType = "db2oci";   
+       var $sysTimeStamp = 'sysdate';
+       var $sysDate = 'trunc(sysdate)';
+       
+       function ADODB_db2oci()
+       {
+               $this->ADODB_db2();
+       }
+       
+       
+       function _Execute($sql, $inputarr)
+       {
+               if ($inputarr) list($sql,$inputarr) = _colonscope($sql, $inputarr);
+               return parent::_Execute($sql, $inputarr);
+       }
+};
+
+class  ADORecordSet_db2oci extends ADORecordSet_odbc { 
+       
+       var $databaseType = "db2oci";           
+       
+       function ADORecordSet_db2oci($id,$mode=false)
+       {
+               return $this->ADORecordSet_db2($id,$mode);
+       }
+}
+
+} //define
+?>
\ No newline at end of file
index 13bbd86..1cb5597 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ @version V5.11 5 May 2010  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d234a62..3bb07e7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 0dc5c7a..71c3a5e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.  
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 1b2643b..18ad037 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+* @version V5.11 5 May 2010  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 dd49123..1c9aec6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim. All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 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.
@@ -123,7 +123,7 @@ class ADODB_informix72 extends ADOConnection {
                return true;
        }
 
-       function RowLock($tables,$where,$col='1 as ignore')
+       function RowLock($tables,$where,$col='1 as adodbignore')
        {
                if ($this->_autocommit) $this->BeginTrans();
                return $this->GetOne("select $col from $tables where $where for update");
index d6ebb40..4c5eb1a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 21de19a..9de8f78 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -366,8 +366,9 @@ class ADODB_mssql extends ADOConnection {
                
                See http://www.swynk.com/friends/achigrik/SQL70Locks.asp
        */
-       function RowLock($tables,$where,$col='top 1 null as ignore') 
+       function RowLock($tables,$where,$col='1 as adodbignore') 
        {
+               if ($col == '1 as adodbignore') $col = 'top 1 null as ignore';
                if (!$this->transCnt) $this->BeginTrans();
                return $this->GetOne("select $col from $tables with (ROWLOCK,HOLDLOCK) where $where");
        }
@@ -476,7 +477,7 @@ order by constraint_name, referenced_table_name, keyno";
 
        // "Stein-Aksel Basma" <basma@accelero.no>
        // tested with MSSQL 2000
-       function MetaPrimaryKeys($table)
+       function MetaPrimaryKeys($table, $owner=false)
        {
        global $ADODB_FETCH_MODE;
        
@@ -591,7 +592,7 @@ order by constraint_name, referenced_table_name, keyno";
                return array($sql,$this->qstr($sql2),$max,$sql2);
        }
        
-       function PrepareSP($sql)
+       function PrepareSP($sql,$param=true)
        {
                if (!$this->_has_mssql_init) {
                        ADOConnection::outp( "PrepareSP: mssql_init only available since PHP 4.1.0");
@@ -911,11 +912,19 @@ class ADORecordset_mssql extends ADORecordSet {
                        if (is_array($this->fields)) {
                                if (ADODB_ASSOC_CASE == 0) {
                                        foreach($this->fields as $k=>$v) {
-                                               $this->fields[strtolower($k)] = $v;
+                                               $kn = strtolower($k);
+                                               if ($kn <> $k) {
+                                                       unset($this->fields[$k]);
+                                                       $this->fields[$kn] = $v;
+                                               }
                                        }
                                } else if (ADODB_ASSOC_CASE == 1) {
                                        foreach($this->fields as $k=>$v) {
-                                               $this->fields[strtoupper($k)] = $v;
+                                               $kn = strtoupper($k);
+                                               if ($kn <> $k) {
+                                                       unset($this->fields[$k]);
+                                                       $this->fields[$kn] = $v;
+                                               }
                                        }
                                }
                        }
@@ -956,11 +965,19 @@ class ADORecordset_mssql extends ADORecordSet {
                        if (!$this->fields) {
                        } else if (ADODB_ASSOC_CASE == 0) {
                                foreach($this->fields as $k=>$v) {
-                                       $this->fields[strtolower($k)] = $v;
+                                       $kn = strtolower($k);
+                                       if ($kn <> $k) {
+                                               unset($this->fields[$k]);
+                                               $this->fields[$kn] = $v;
+                                       }
                                }
                        } else if (ADODB_ASSOC_CASE == 1) {
                                foreach($this->fields as $k=>$v) {
-                                       $this->fields[strtoupper($k)] = $v;
+                                       $kn = strtoupper($k);
+                                       if ($kn <> $k) {
+                                               unset($this->fields[$k]);
+                                               $this->fields[$kn] = $v;
+                                       }
                                }
                        }
                } else {
index 199b100..78d2c6c 100644 (file)
@@ -9,7 +9,7 @@
 // ADOdb  - Database Abstraction Library for PHP                         //
 //          http://adodb.sourceforge.net/                                //
 //                                                                       //
-// Copyright (C) 2000-2009 John Lim (jlim\@natsoft.com.my)               //
+// Copyright (c) 2000-2010 John Lim (jlim\@natsoft.com.my)               //
 //          All rights reserved.                                         //
 //          Released under both BSD license and LGPL library license.    //
 //          Whenever there is any discrepancy between the two licenses,  //
index 920d947..8b326ab 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -330,8 +330,9 @@ class ADODB_mssqlnative extends ADOConnection {
                
                See http://www.swynk.com/friends/achigrik/SQL70Locks.asp
        */
-       function RowLock($tables,$where,$col='top 1 null as ignore') 
+       function RowLock($tables,$where,$col='1 as adodbignore') 
        {
+               if ($col == '1 as adodbignore') $col = 'top 1 null as ignore';
                if (!$this->transCnt) $this->BeginTrans();
                return $this->GetOne("select $col from $tables with (ROWLOCK,HOLDLOCK) where $where");
        }
@@ -493,7 +494,7 @@ class ADODB_mssqlnative extends ADOConnection {
                return ADORecordSet_array_mssql::UnixTimeStamp($v);
        }       
 
-       function &MetaIndexes($table,$primary=false)
+       function &MetaIndexes($table,$primary=false, $owner = false)
        {
                $table = $this->qstr($table);
 
index d10e1b8..dd3b377 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
-* @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+* @version V5.11 5 May 2010  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 751e8bd..4b215e5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -158,11 +158,12 @@ class ADODB_mysql extends ADOConnection {
        
        function GetOne($sql,$inputarr=false)
        {
+       global $ADODB_GETONE_EOF;
                if ($this->compat323 == false && strncasecmp($sql,'sele',4) == 0) {
                        $rs = $this->SelectLimit($sql,1,-1,$inputarr);
                        if ($rs) {
                                $rs->Close();
-                               if ($rs->EOF) return false;
+                               if ($rs->EOF) return $ADODB_GETONE_EOF;
                                return reset($rs->fields);
                        }
                } else {
index d4c3a33..094c150 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -195,7 +195,7 @@ class ADODB_mysqli extends ADOConnection {
                return true;
        }
        
-       function RowLock($tables,$where='',$col='1 as adodb_ignore') 
+       function RowLock($tables,$where='',$col='1 as adodbignore') 
        {
                if ($this->transCnt==0) $this->BeginTrans();
                if ($where) $where = ' where '.$where;
@@ -309,7 +309,7 @@ class ADODB_mysqli extends ADOConnection {
        }
 
          
-       function MetaIndexes ($table, $primary = FALSE)
+       function MetaIndexes ($table, $primary = FALSE, $owner = false)
        {
                // save old fetch mode
                global $ADODB_FETCH_MODE;
index b52ff96..668bdcf 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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,7 +59,7 @@ class ADODB_mysqlt extends ADODB_mysql {
                return true;
        }
        
-       function RowLock($tables,$where='',$col='1 as adodb_ignore') 
+       function RowLock($tables,$where='',$col='1 as adodbignore') 
        {
                if ($this->transCnt==0) $this->BeginTrans();
                if ($where) $where = ' where '.$where;
index f14dc05..5007b75 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -76,7 +76,7 @@ class ADODB_mysqlt extends ADODB_mysql {
                return $ok ? true : false;
        }
        
-       function RowLock($tables,$where='',$col='1 as adodb_ignore') 
+       function RowLock($tables,$where='',$col='1 as adodbignore') 
        {
                if ($this->transCnt==0) $this->BeginTrans();
                if ($where) $where = ' where '.$where;
index 8b78943..0f5a1ee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). All rights reserved.
  
   First cut at the Netezza Driver by Josh Eldridge joshuae74#hotmail.com
  Based on the previous postgres drivers.
index a14e3f6..360b6b4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
 
-  version V5.06 16 Oct 2008  (c) 2000-2009 John Lim. All rights reserved.
+  version V5.11 5 May 2010  (c) 2000-2010 John Lim. All rights reserved.
 
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
@@ -65,6 +65,11 @@ class ADODB_oci8 extends ADOConnection {
        var $_initdate = true; // init date to YYYY-MM-DD
        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 $metaColumnsSQL2 = "select column_name,data_type,data_length, data_scale, data_precision, 
+    case when nullable = 'Y' then 'NULL'
+    else 'NOT NULL' end as nulls,
+    data_default from all_tab_cols 
+  where owner='%s' and table_name='%s' order by column_id"; // when there is a schema
        var $_bindInputArray = true;
        var $hasGenID = true;
        var $_genIDSQL = "SELECT (%s.nextval) FROM DUAL";
@@ -100,13 +105,19 @@ class ADODB_oci8 extends ADOConnection {
        function MetaColumns($table, $normalize=true) 
        {
        global $ADODB_FETCH_MODE;
-       
+               
+               $schema = '';
+               $this->_findschema($table, $schema);
+               
                $false = false;
                $save = $ADODB_FETCH_MODE;
                $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
                if ($this->fetchMode !== false) $savem = $this->SetFetchMode(false);
-               
-               $rs = $this->Execute(sprintf($this->metaColumnsSQL,strtoupper($table)));
+
+               if ($schema)
+                       $rs = $this->Execute(sprintf($this->metaColumnsSQL2, strtoupper($schema), strtoupper($table)));
+               else
+                       $rs = $this->Execute(sprintf($this->metaColumnsSQL,strtoupper($table)));
                
                if (isset($savem)) $this->SetFetchMode($savem);
                $ADODB_FETCH_MODE = $save;
@@ -114,7 +125,7 @@ class ADODB_oci8 extends ADOConnection {
                        return $false;
                }
                $retarr = array();
-               while (!$rs->EOF) { //print_r($rs->fields);
+               while (!$rs->EOF) {
                        $fld = new ADOFieldObject();
                        $fld->name = $rs->fields[0];
                        $fld->type = $rs->fields[1];
@@ -322,7 +333,7 @@ NATSOFT.DOMAIN =
                return 'TO_DATE('.$tss.",'RRRR-MM-DD, HH24:MI:SS')";
        }
        
-       function RowLock($tables,$where,$col='1 as ignore') 
+       function RowLock($tables,$where,$col='1 as adodbignore') 
        {
                if ($this->autoCommit) $this->BeginTrans();
                return $this->GetOne("select $col from $tables where $where for update");
@@ -972,7 +983,7 @@ NATSOFT.DOMAIN =
                                        ADOConnection::outp("<b>Bind</b>: LOB has been written to temp");
                                }
                        } else {
-                               $this->_refLOBs[$numlob]['VAR'] = $var;
+                               $this->_refLOBs[$numlob]['VAR'] = &$var;
                        }
                        $rez = $tmp;
                } else {
@@ -1398,6 +1409,7 @@ class ADORecordset_oci8 extends ADORecordSet {
                        $p = OCIColumnPrecision($this->_queryID, $fieldOffset);
                        $sc = OCIColumnScale($this->_queryID, $fieldOffset);
                        if ($p != 0 && $sc == 0) $fld->type = 'INT';
+                       $fld->scale = $p;
                        break;
                
                case 'CLOB':
index 3051872..6d8a202 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V5.06 16 Oct 2008  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V5.11 5 May 2010  (c) 2000-2010 John Lim (jlim#natsoft.com). 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 90be872..3f80db1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim. All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 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 19a0e96..0beb4bf 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -161,6 +161,12 @@ class ADODB_odbc extends ADOConnection {
                                $num += 1;
                                $this->genID = $num;
                                return $num;
+                       } elseif ($this->affected_rows() == 0) {
+                               // some drivers do not return a valid value => try with another method
+                               $value = $this->GetOne("select id from $seq");
+                               if ($value == $num + 1) {
+                                       return $value;
+                               }
                        }
                }
                if ($fn = $this->raiseErrorFn) {
index b12be03..8bec473 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -134,7 +134,7 @@ class ADODB_ODBC_DB2 extends ADODB_odbc {
                return $this->GetOne($this->identitySQL);
        }
        
-       function RowLock($tables,$where,$col='1 as ignore')
+       function RowLock($tables,$where,$col='1 as adodbignore')
        {
                if ($this->_autocommit) $this->BeginTrans();
                return $this->GetOne("select $col from $tables where $where for update");
index c8e261b..fe47341 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -25,6 +25,7 @@ class  ADODB_odbc_mssql extends ADODB_odbc {
        var $fmtDate = "'Y-m-d'";
        var $fmtTimeStamp = "'Y-m-d H:i:s'";
        var $_bindInputArray = true;
+       var $metaDatabasesSQL = "select name from sysdatabases where name <> 'master'";
        var $metaTablesSQL="select name,case when type='U' then 'T' else 'V' end from sysobjects where (type='U' or type='V') and (name not in ('sysallocations','syscolumns','syscomments','sysdepends','sysfilegroups','sysfiles','sysfiles1','sysforeignkeys','sysfulltextcatalogs','sysindexes','sysindexkeys','sysmembers','sysobjects','syspermissions','sysprotects','sysreferences','systypes','sysusers','sysalternates','sysconstraints','syssegments','REFERENTIAL_CONSTRAINTS','CHECK_CONSTRAINTS','CONSTRAINT_TABLE_USAGE','CONSTRAINT_COLUMN_USAGE','VIEWS','VIEW_TABLE_USAGE','VIEW_COLUMN_USAGE','SCHEMATA','TABLES','TABLE_CONSTRAINTS','TABLE_PRIVILEGES','COLUMNS','COLUMN_DOMAIN_USAGE','COLUMN_PRIVILEGES','DOMAINS','DOMAIN_CONSTRAINTS','KEY_COLUMN_USAGE'))";
        var $metaColumnsSQL = "select c.name,t.name,c.length from syscolumns c join systypes t on t.xusertype=c.xusertype join sysobjects o on o.id=c.id where o.name='%s'";
        var $hasTop = 'top';            // support mssql/interbase SELECT TOP 10 * FROM TABLE
index 9d2d527..7c2c77f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 299bf70..2c7b124 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -172,7 +172,10 @@ class ADODB_odbtp extends ADOConnection{
        //if uid & pwd can be separate
     function _connect($HostOrInterface, $UserOrDSN='', $argPassword='', $argDatabase='')
        {
-               $this->_connectionID = odbtp_connect($HostOrInterface,$UserOrDSN,$argPassword,$argDatabase);
+               if ($argPassword && stripos($UserOrDSN,'DRIVER=') !== false) {
+                       $this->_connectionID = odbtp_connect($HostOrInterface,$UserOrDSN.';PWD='.$argPassword);
+               } else
+                       $this->_connectionID = odbtp_connect($HostOrInterface,$UserOrDSN,$argPassword,$argDatabase);
                if ($this->_connectionID === false) {
                        $this->_errorMsg = $this->ErrorMsg() ;
                        return false;
@@ -551,7 +554,7 @@ class ADODB_odbtp extends ADOConnection{
                }
        }
        
-       function MetaIndexes_mssql($table,$primary=false)
+       function MetaIndexes_mssql($table,$primary=false, $owner = false)
        {
                $table = strtolower($this->qstr($table));
 
index 0e2e676..e61cee7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-       V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+       V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 b873ee0..fa18eee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d88456f..bc88507 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 a83ddfb..5a7dd51 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 c650726..94b59fb 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 b16fdef..6e9dcc0 100644 (file)
@@ -2,7 +2,7 @@
 
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 a7e6462..5405dc3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 6218ff9..0306a05 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
- V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 b4e69b6..6f580ff 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 82fc328..8258149 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -178,7 +178,7 @@ a different OID if a database must be reloaded. */
                return @pg_Exec($this->_connectionID, "begin ".$this->_transmode);
        }
        
-       function RowLock($tables,$where,$col='1 as ignore') 
+       function RowLock($tables,$where,$col='1 as adodbignore') 
        {
                if (!$this->transCnt) $this->BeginTrans();
                return $this->GetOne("select $col from $tables where $where for update");
@@ -584,7 +584,7 @@ select viewname,'V' from pg_views where viewname like $mask";
                
        }
 
-         function MetaIndexes ($table, $primary = FALSE)
+         function MetaIndexes ($table, $primary = FALSE, $owner = false)
       {
          global $ADODB_FETCH_MODE;
                 
index 57fb9a6..eecfdc3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 f4bbe36..3134e3c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
- V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 f985823..a7292b8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 016d5fd..8a4bf9a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -53,7 +53,7 @@ class ADODB_SAPDB extends ADODB_odbc {
                return $this->GetCol("SELECT columnname FROM COLUMNS WHERE tablename=$table AND mode='KEY' ORDER BY pos");
        }
                
-       function MetaIndexes ($table, $primary = FALSE)
+       function MetaIndexes ($table, $primary = FALSE, $owner = false)
        {
                $table = $this->Quote(strtoupper($table));
 
index 2229323..3933d85 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-version V5.06 16 Oct 2008  (c) 2000-2009  John Lim (jlim#natsoft.com).  All rights
+version V5.06 16 Oct 2008  (c) 2000-2010  John Lim (jlim#natsoft.com).  All rights
 reserved.
   Released under both BSD license and Lesser GPL library license. 
   Whenever there is any discrepancy between the two licenses, 
index 79836e0..bb95a42 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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.
@@ -261,7 +261,7 @@ class ADODB_sqlite extends ADOConnection {
                return @sqlite_close($this->_connectionID);
        }
 
-       function MetaIndexes($table, $primary = FALSE, $owner=false)
+       function MetaIndexes($table, $primary = FALSE, $owner=false, $owner = false)
        {
                $false = false;
                // save old fetch mode
index 79d809e..2bdb99a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 46bf827..e333f3d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim. All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 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 13f7bdd..5d2023c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /*
-  V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 490a6cb..d1ccae3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
diff --git a/lib/adodb/lang/adodb-ar.inc.php b/lib/adodb/lang/adodb-ar.inc.php
deleted file mode 100644 (file)
index 4b75095..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// by "El-Shamaa, Khaled" <k.el-shamaa#cgiar.org>
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'ar',
-           DB_ERROR                    => 'ÎØÃ ÛíÑ ãÍÏÏ',
-           DB_ERROR_ALREADY_EXISTS     => 'ãæÌæÏ ãÓÈÞÇ',
-           DB_ERROR_CANNOT_CREATE      => 'áÇ íãßä ÅäÔÇÁ',
-           DB_ERROR_CANNOT_DELETE      => 'áÇ íãßä ÍÐÝ',
-           DB_ERROR_CANNOT_DROP        => 'áÇ íãßä ÍÐÝ',
-           DB_ERROR_CONSTRAINT         => 'ÚãáíÉ ÅÏÎÇá ããäæÚÉ',
-           DB_ERROR_DIVZERO            => 'ÚãáíÉ ÇáÊÞÓíã Úáì ÕÝÑ',
-           DB_ERROR_INVALID            => 'ÛíÑ ÕÍíÍ',
-           DB_ERROR_INVALID_DATE       => 'ÕíÛÉ æÞÊ Ãæ ÊÇÑíΠÛíÑ ÕÍíÍÉ',
-           DB_ERROR_INVALID_NUMBER     => 'ÕíÛÉ ÑÞã ÛíÑ ÕÍíÍÉ',
-           DB_ERROR_MISMATCH           => 'ÛíÑ ãÊØÇÈÞ',
-           DB_ERROR_NODBSELECTED       => 'áã íÊã ÅÎÊíÇÑ ÞÇÚÏÉ ÇáÈíÇäÇÊ ÈÚÏ',
-           DB_ERROR_NOSUCHFIELD        => 'áíÓ åäÇáß ÍÞá ÈåÐÇ ÇáÇÓã',
-           DB_ERROR_NOSUCHTABLE        => 'áíÓ åäÇáß ÌÏæá ÈåÐÇ ÇáÇÓã',
-           DB_ERROR_NOT_CAPABLE        => 'ÞÇÚÏÉ ÇáÈíÇäÇÊ ÇáãÑÊÈØ ÈåÇ ÛíÑ ÞÇÏÑÉ',
-           DB_ERROR_NOT_FOUND          => 'áã íÊã ÅíÌÇÏå',
-           DB_ERROR_NOT_LOCKED         => 'ÛíÑ ãÞÝæá',
-           DB_ERROR_SYNTAX             => 'ÎØÃ Ýí ÇáÕíÛÉ',
-           DB_ERROR_UNSUPPORTED        => 'ÛíÑ ãÏÚæã',
-           DB_ERROR_VALUE_COUNT_ON_ROW => 'ÚÏÏ ÇáÞíã Ýí ÇáÓÌá',
-           DB_ERROR_INVALID_DSN        => 'DSN ÛíÑ ÕÍíÍ',
-           DB_ERROR_CONNECT_FAILED     => 'ÝÔá ÚãáíÉ ÇáÅÊÕÇá',
-           0                          => 'áíÓ åäÇáß ÃÎØÇÁ', // DB_OK
-           DB_ERROR_NEED_MORE_DATA     => 'ÇáÈíÇäÇÊ ÇáãÒæÏÉ ÛíÑ ßÇÝíÉ',
-           DB_ERROR_EXTENSION_NOT_FOUND=> 'áã íÊã ÅíÌÇÏ ÇáÅÖÇÝÉ ÇáãÊÚáÞÉ',
-           DB_ERROR_NOSUCHDB           => 'áíÓ åäÇáß ÞÇÚÏÉ ÈíÇäÇÊ ÈåÐÇ ÇáÇÓã',
-           DB_ERROR_ACCESS_VIOLATION   => 'ÓãÇÍíÇÊ ÛíÑ ßÇÝíÉ'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-bg.inc.php b/lib/adodb/lang/adodb-bg.inc.php
deleted file mode 100644 (file)
index ee307c1..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/*
-       Bulgarian language, v1.0, 25.03.2004, encoding by Windows-1251 charset
-       contributed by Valentin Sheiretsky <valio#valio.eu.org>
-*/
-
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'bg',
-            DB_ERROR                    => 'íåèçâåñòíà ãðåøêà',
-            DB_ERROR_ALREADY_EXISTS     => 'âå÷å ñúùåñòâóâà',
-            DB_ERROR_CANNOT_CREATE      => 'íå ìîæå äà áúäå ñúçäàäåíà',
-            DB_ERROR_CANNOT_DELETE      => 'íå ìîæå äà áúäå èçòðèòà',
-            DB_ERROR_CANNOT_DROP        => 'íå ìîæå äà áúäå óíèùîæåíà',
-            DB_ERROR_CONSTRAINT         => 'íàðóøåíî óñëîâèå',
-            DB_ERROR_DIVZERO            => 'äåëåíèå íà íóëà',
-            DB_ERROR_INVALID            => 'íåïðàâèëíî',
-            DB_ERROR_INVALID_DATE       => 'íåêîðåêòíà äàòà èëè ÷àñ',
-            DB_ERROR_INVALID_NUMBER     => 'íåâàëèäåí íîìåð',
-            DB_ERROR_MISMATCH           => 'ïîãðåøíà óïîòðåáà',
-            DB_ERROR_NODBSELECTED       => 'íå å èçáðàíà áàçà äàííè',
-            DB_ERROR_NOSUCHFIELD        => 'íåñúùåñòâóâàùî ïîëå',
-            DB_ERROR_NOSUCHTABLE        => 'íåñúùåñòâóâàùà òàáëèöà',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
-            DB_ERROR_NOT_FOUND          => 'íå å íàìåðåíà',
-            DB_ERROR_NOT_LOCKED         => 'íå å çàêëþ÷åíà',
-            DB_ERROR_SYNTAX             => 'ãðåøåí ñèíòàêñèñ',
-            DB_ERROR_UNSUPPORTED        => 'íå ñå ïîääúðæà',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'íåêîðåêòåí áðîé êîëîíè â ðåäà',
-            DB_ERROR_INVALID_DSN        => 'íåâàëèäåí DSN',
-            DB_ERROR_CONNECT_FAILED     => 'âðúçêàòà íå ìîæå äà áúäå îñúùåñòâåíà',
-            0                          => 'íÿìà ãðåøêè', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'ïðåäîñòàâåíèòå äàííè ñà íåäîñòàòú÷íè',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'ðàçøèðåíèåòî íå å íàìåðåíî',
-            DB_ERROR_NOSUCHDB           => 'íåñúùåñòâóâàùà áàçà äàííè',
-            DB_ERROR_ACCESS_VIOLATION   => 'íÿìàòå äîñòàòú÷íî ïðàâà'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-bgutf8.inc.php b/lib/adodb/lang/adodb-bgutf8.inc.php
deleted file mode 100644 (file)
index 5281ed5..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/*
-       Bulgarian language, v1.0, 25.03.2004, encoding by UTF-8 charset
-       contributed by Valentin Sheiretsky <valio#valio.eu.org>
-*/
-
-$ADODB_LANG_ARRAY = array (
-            'LANG'                      => 'bgutf8',
-            DB_ERROR                    => 'неизвестна грешка',
-            DB_ERROR_ALREADY_EXISTS     => 'вече съществува',
-            DB_ERROR_CANNOT_CREATE      => 'не може да бъде създадена',
-            DB_ERROR_CANNOT_DELETE      => 'не може да бъде изтрита',
-            DB_ERROR_CANNOT_DROP        => 'не може да бъде унищожена',
-            DB_ERROR_CONSTRAINT         => 'нарушено условие',
-            DB_ERROR_DIVZERO            => 'деление на нула',
-            DB_ERROR_INVALID            => 'неправилно',
-            DB_ERROR_INVALID_DATE       => 'некоректна дата или час',
-            DB_ERROR_INVALID_NUMBER     => 'невалиден номер',
-            DB_ERROR_MISMATCH           => 'погрешна употреба',
-            DB_ERROR_NODBSELECTED       => 'не е избрана база данни',
-            DB_ERROR_NOSUCHFIELD        => 'несъществуващо поле',
-            DB_ERROR_NOSUCHTABLE        => 'несъществуваща таблица',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
-            DB_ERROR_NOT_FOUND          => 'не е намерена',
-            DB_ERROR_NOT_LOCKED         => 'не е заключена',
-            DB_ERROR_SYNTAX             => 'грешен синтаксис',
-            DB_ERROR_UNSUPPORTED        => 'не се поддържа',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'некоректен брой колони в реда',
-            DB_ERROR_INVALID_DSN        => 'невалиден DSN',
-            DB_ERROR_CONNECT_FAILED     => 'връзката не може да бъде осъществена',
-            0                          => 'няма грешки', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'предоставените данни са недостатъчни',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'разширението не е намерено',
-            DB_ERROR_NOSUCHDB           => 'несъществуваща база данни',
-            DB_ERROR_ACCESS_VIOLATION   => 'нямате достатъчно права'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-ca.inc.php b/lib/adodb/lang/adodb-ca.inc.php
deleted file mode 100644 (file)
index 3640ebd..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-// Catalan language
-// contributed by "Josep Lladonosa" jlladono#pie.xtec.es
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'ca',
-            DB_ERROR                    => 'error desconegut',
-            DB_ERROR_ALREADY_EXISTS     => 'ja existeix',
-            DB_ERROR_CANNOT_CREATE      => 'no es pot crear',
-            DB_ERROR_CANNOT_DELETE      => 'no es pot esborrar',
-            DB_ERROR_CANNOT_DROP        => 'no es pot eliminar',
-            DB_ERROR_CONSTRAINT         => 'violació de constraint',
-            DB_ERROR_DIVZERO            => 'divisió per zero',
-            DB_ERROR_INVALID            => 'no és vàlid',
-            DB_ERROR_INVALID_DATE       => 'la data o l\'hora no són vàlides',
-            DB_ERROR_INVALID_NUMBER     => 'el nombre no és vàlid',
-            DB_ERROR_MISMATCH           => 'no hi ha coincidència',
-            DB_ERROR_NODBSELECTED       => 'cap base de dades seleccionada',
-            DB_ERROR_NOSUCHFIELD        => 'camp inexistent',
-            DB_ERROR_NOSUCHTABLE        => 'taula inexistent',
-            DB_ERROR_NOT_CAPABLE        => 'l\'execució secundària de DB no pot',
-            DB_ERROR_NOT_FOUND          => 'no trobat',
-            DB_ERROR_NOT_LOCKED         => 'no blocat',
-            DB_ERROR_SYNTAX             => 'error de sintaxi',
-            DB_ERROR_UNSUPPORTED        => 'no suportat',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'el nombre de columnes no coincideix amb el nombre de valors en la fila',
-            DB_ERROR_INVALID_DSN        => 'el DSN no és vàlid',
-            DB_ERROR_CONNECT_FAILED     => 'connexió fallida',
-            0                         => 'cap error', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'les dades subministrades són insuficients',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extensió no trobada',
-            DB_ERROR_NOSUCHDB           => 'base de dades inexistent',
-            DB_ERROR_ACCESS_VIOLATION   => 'permisos insuficients'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-cn.inc.php b/lib/adodb/lang/adodb-cn.inc.php
deleted file mode 100644 (file)
index b108604..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-// Chinese language file contributed by "Cuiyan (cysoft)" cysoft#php.net.
-// Encode by GB2312
-// Simplified Chinese
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'cn',
-            DB_ERROR                    => 'δ֪����',
-            DB_ERROR_ALREADY_EXISTS     => '�Ѿ�����',
-            DB_ERROR_CANNOT_CREATE      => '���ܴ���',
-            DB_ERROR_CANNOT_DELETE      => '����ɾ��',
-            DB_ERROR_CANNOT_DROP        => '���ܶ���',
-            DB_ERROR_CONSTRAINT         => 'Լ������',
-            DB_ERROR_DIVZERO            => '��0��',
-            DB_ERROR_INVALID            => '��Ч',
-            DB_ERROR_INVALID_DATE       => '��Ч�����ڻ���ʱ��',
-            DB_ERROR_INVALID_NUMBER     => '��Ч������',
-            DB_ERROR_MISMATCH           => '��ƥ��',
-            DB_ERROR_NODBSELECTED       => 'û����ݿⱻѡ��',
-            DB_ERROR_NOSUCHFIELD        => 'û����Ӧ���ֶ�',
-            DB_ERROR_NOSUCHTABLE        => 'û����Ӧ�ı�',
-            DB_ERROR_NOT_CAPABLE        => '��ݿ��̨������',
-            DB_ERROR_NOT_FOUND          => 'û�з���',
-            DB_ERROR_NOT_LOCKED         => 'û�б���',
-            DB_ERROR_SYNTAX             => '�﷨����',
-            DB_ERROR_UNSUPPORTED        => '��֧��',
-            DB_ERROR_VALUE_COUNT_ON_ROW => '�������ۼ�ֵ',
-            DB_ERROR_INVALID_DSN        => '��Ч�����Դ (DSN)',
-            DB_ERROR_CONNECT_FAILED     => '����ʧ��',
-            0                         => 'û�д���', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => '�ṩ����ݲ��ܷ��Ҫ��',
-            DB_ERROR_EXTENSION_NOT_FOUND=> '��չû�б�����',
-            DB_ERROR_NOSUCHDB           => 'û����Ӧ����ݿ�',
-            DB_ERROR_ACCESS_VIOLATION   => 'û�к��ʵ�Ȩ��'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-cz.inc.php b/lib/adodb/lang/adodb-cz.inc.php
deleted file mode 100644 (file)
index e16a22d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-# Czech language, encoding by ISO 8859-2 charset (Iso Latin-2)
-# For convert to MS Windows use shell command:
-#    iconv -f ISO_8859-2 -t CP1250 < adodb-cz.inc.php
-# For convert to ASCII use shell command:
-#    unaccent ISO_8859-2 < adodb-cz.inc.php
-# v1.0, 19.06.2003 Kamil Jakubovic <jake@host.sk>
-
-$ADODB_LANG_ARRAY = array (
-            'LANG'                      => 'cz',
-            DB_ERROR                    => 'nezn�m� chyba',
-            DB_ERROR_ALREADY_EXISTS     => 'ji? existuje',
-            DB_ERROR_CANNOT_CREATE      => 'nelze vytvo?it',
-            DB_ERROR_CANNOT_DELETE      => 'nelze smazat',
-            DB_ERROR_CANNOT_DROP        => 'nelze odstranit',
-            DB_ERROR_CONSTRAINT         => 'poru?en� omezuj�c� podm�nky',
-            DB_ERROR_DIVZERO            => 'd?len� nulou',
-            DB_ERROR_INVALID            => 'neplatn�',
-            DB_ERROR_INVALID_DATE       => 'neplatn� datum nebo ?as',
-            DB_ERROR_INVALID_NUMBER     => 'neplatn� ?�slo',
-            DB_ERROR_MISMATCH           => 'nesouhlas�',
-            DB_ERROR_NODBSELECTED       => '?�dn� datab�ze nen� vybr�na',
-            DB_ERROR_NOSUCHFIELD        => 'pole nenalezeno',
-            DB_ERROR_NOSUCHTABLE        => 'tabulka nenalezena',
-            DB_ERROR_NOT_CAPABLE        => 'nepodporov�no',
-            DB_ERROR_NOT_FOUND          => 'nenalezeno',
-            DB_ERROR_NOT_LOCKED         => 'nezam?eno',
-            DB_ERROR_SYNTAX             => 'syntaktick� chyba',
-            DB_ERROR_UNSUPPORTED        => 'nepodporov�no',
-            DB_ERROR_VALUE_COUNT_ON_ROW => '',
-            DB_ERROR_INVALID_DSN        => 'neplatn� DSN',
-            DB_ERROR_CONNECT_FAILED     => 'p?ipojen� selhalo',
-            0                          => 'bez chyb', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'm�lo zdrojov�ch dat',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'roz?�?en� nenalezeno',
-            DB_ERROR_NOSUCHDB           => 'datab�ze neexistuje',
-            DB_ERROR_ACCESS_VIOLATION   => 'nedostate?n� pr�va'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-da.inc.php b/lib/adodb/lang/adodb-da.inc.php
deleted file mode 100644 (file)
index ca0e72d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// Arne Eckmann bananstat#users.sourceforge.net
-$ADODB_LANG_ARRAY = array (
-           'LANG'                      => 'da',
-            DB_ERROR                    => 'ukendt fejl',
-            DB_ERROR_ALREADY_EXISTS     => 'eksisterer allerede',
-            DB_ERROR_CANNOT_CREATE      => 'kan ikke oprette',
-            DB_ERROR_CANNOT_DELETE      => 'kan ikke slette',
-            DB_ERROR_CANNOT_DROP        => 'kan ikke droppe',
-            DB_ERROR_CONSTRAINT         => 'begr&aelig;nsning kr&aelig;nket',
-            DB_ERROR_DIVZERO            => 'division med nul',
-            DB_ERROR_INVALID            => 'ugyldig',
-            DB_ERROR_INVALID_DATE       => 'ugyldig dato eller klokkeslet',
-            DB_ERROR_INVALID_NUMBER     => 'ugyldigt tal',
-            DB_ERROR_MISMATCH           => 'mismatch',
-            DB_ERROR_NODBSELECTED       => 'ingen database valgt',
-            DB_ERROR_NOSUCHFIELD        => 'felt findes ikke',
-            DB_ERROR_NOSUCHTABLE        => 'tabel findes ikke',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend opgav',
-            DB_ERROR_NOT_FOUND          => 'ikke fundet',
-            DB_ERROR_NOT_LOCKED         => 'ikke l&aring;st',
-            DB_ERROR_SYNTAX             => 'syntaksfejl',
-            DB_ERROR_UNSUPPORTED        => 'ikke underst&oslash;ttet',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'resulterende antal felter svarer ikke til foresp&oslash;rgslens antal felter',
-            DB_ERROR_INVALID_DSN        => 'ugyldig DSN',
-            DB_ERROR_CONNECT_FAILED     => 'tilslutning mislykkedes',
-            0                          => 'ingen fejl', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'utilstr&aelig;kkelige data angivet',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'udvidelse ikke fundet',
-            DB_ERROR_NOSUCHDB           => 'database ikke fundet',
-            DB_ERROR_ACCESS_VIOLATION   => 'utilstr&aelig;kkelige rettigheder'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-de.inc.php b/lib/adodb/lang/adodb-de.inc.php
deleted file mode 100644 (file)
index 44c57e9..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// contributed by "Heinz Hombergs" <opn@hhombergs.de>
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'de',
-                       DB_ERROR                    => 'Unbekannter Fehler',
-            DB_ERROR_ALREADY_EXISTS     => 'existiert bereits',
-            DB_ERROR_CANNOT_CREATE      => 'kann nicht erstellen',
-            DB_ERROR_CANNOT_DELETE      => 'kann nicht l&ouml;schen',
-            DB_ERROR_CANNOT_DROP        => 'Tabelle oder Index konnte nicht gel&ouml;scht werden',
-            DB_ERROR_CONSTRAINT         => 'Constraint Verletzung',
-            DB_ERROR_DIVZERO            => 'Division durch Null',
-            DB_ERROR_INVALID            => 'ung&uml;ltig',
-            DB_ERROR_INVALID_DATE       => 'ung&uml;ltiges Datum oder Zeit',
-            DB_ERROR_INVALID_NUMBER     => 'ung&uml;ltige Zahl',
-            DB_ERROR_MISMATCH           => 'Unvertr&auml;glichkeit',
-            DB_ERROR_NODBSELECTED       => 'keine Dantebank ausgew&auml;hlt',
-            DB_ERROR_NOSUCHFIELD        => 'Feld nicht vorhanden',
-            DB_ERROR_NOSUCHTABLE        => 'Tabelle nicht vorhanden',
-            DB_ERROR_NOT_CAPABLE        => 'Funktion nicht installiert',
-            DB_ERROR_NOT_FOUND          => 'nicht gefunden',
-            DB_ERROR_NOT_LOCKED         => 'nicht gesperrt',
-            DB_ERROR_SYNTAX             => 'Syntaxfehler',
-            DB_ERROR_UNSUPPORTED        => 'nicht Unterst&uml;tzt',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'Anzahl der zur&uml;ckgelieferten Felder entspricht nicht der Anzahl der Felder in der Abfrage',
-            DB_ERROR_INVALID_DSN        => 'ung&uml;ltiger DSN',
-            DB_ERROR_CONNECT_FAILED     => 'Verbindung konnte nicht hergestellt werden',
-            0                         => 'kein Fehler', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'Nicht gen&uml;gend Daten geliefert',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'erweiterung nicht gefunden',
-            DB_ERROR_NOSUCHDB           => 'keine Datenbank',
-            DB_ERROR_ACCESS_VIOLATION   => 'ungen&uml;gende Rechte'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-es.inc.php b/lib/adodb/lang/adodb-es.inc.php
deleted file mode 100644 (file)
index 1e0afbb..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// contributed by "Horacio Degiorgi" <horaciod@codigophp.com>
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'es',
-            DB_ERROR                    => 'error desconocido',
-            DB_ERROR_ALREADY_EXISTS     => 'ya existe',
-            DB_ERROR_CANNOT_CREATE      => 'imposible crear',
-            DB_ERROR_CANNOT_DELETE      => 'imposible borrar',
-            DB_ERROR_CANNOT_DROP        => 'imposible hacer drop',
-            DB_ERROR_CONSTRAINT         => 'violacion de constraint',
-            DB_ERROR_DIVZERO            => 'division por cero',
-            DB_ERROR_INVALID            => 'invalido',
-            DB_ERROR_INVALID_DATE       => 'fecha u hora invalida',
-            DB_ERROR_INVALID_NUMBER     => 'numero invalido',
-            DB_ERROR_MISMATCH           => 'error',
-            DB_ERROR_NODBSELECTED       => 'no hay base de datos seleccionada',
-            DB_ERROR_NOSUCHFIELD        => 'campo invalido',
-            DB_ERROR_NOSUCHTABLE        => 'tabla no existe',
-            DB_ERROR_NOT_CAPABLE        => 'capacidad invalida para esta DB',
-            DB_ERROR_NOT_FOUND          => 'no encontrado',
-            DB_ERROR_NOT_LOCKED         => 'no bloqueado',
-            DB_ERROR_SYNTAX             => 'error de sintaxis',
-            DB_ERROR_UNSUPPORTED        => 'no soportado',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'la cantidad de columnas no corresponden a la cantidad de valores',
-            DB_ERROR_INVALID_DSN        => 'DSN invalido',
-            DB_ERROR_CONNECT_FAILED     => 'fallo la conexion',
-            0                         => 'sin error', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'insuficientes datos',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extension no encontrada',
-            DB_ERROR_NOSUCHDB           => 'base de datos no encontrada',
-            DB_ERROR_ACCESS_VIOLATION   => 'permisos insuficientes'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-esperanto.inc.php b/lib/adodb/lang/adodb-esperanto.inc.php
deleted file mode 100644 (file)
index 16ca00e..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-// Vivu Esperanto cxiam! 
-// Traduko fare de Antono Vasiljev (anders[#]brainactive.org)
-
-$ADODB_LANG_ARRAY = array (
-             'LANG'                      => 'eo',
-            DB_ERROR                    => 'nekonata eraro',
-            DB_ERROR_ALREADY_EXISTS     => 'jam ekzistas',
-            DB_ERROR_CANNOT_CREATE      => 'maleblas krei',
-            DB_ERROR_CANNOT_DELETE      => 'maleblas elimini',
-            DB_ERROR_CANNOT_DROP        => 'maleblas elimini (drop)',
-            DB_ERROR_CONSTRAINT         => 'rompo de kondicxoj de provo',
-            DB_ERROR_DIVZERO            => 'divido per 0 (nul)',
-            DB_ERROR_INVALID            => 'malregule',
-            DB_ERROR_INVALID_DATE       => 'malregula dato kaj tempo',
-            DB_ERROR_INVALID_NUMBER     => 'malregula nombro',
-            DB_ERROR_MISMATCH           => 'eraro',
-            DB_ERROR_NODBSELECTED       => 'datumbazo ne elektita',
-            DB_ERROR_NOSUCHFIELD        => 'ne ekzistas kampo',
-            DB_ERROR_NOSUCHTABLE        => 'ne ekzistas tabelo',
-            DB_ERROR_NOT_CAPABLE        => 'DBMS ne povas',
-            DB_ERROR_NOT_FOUND          => 'ne trovita',
-            DB_ERROR_NOT_LOCKED         => 'ne blokita',
-            DB_ERROR_SYNTAX             => 'sintaksa eraro',
-            DB_ERROR_UNSUPPORTED        => 'ne apogata',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'nombrilo de valoroj en linio',
-            DB_ERROR_INVALID_DSN        => 'malregula DSN-o',
-            DB_ERROR_CONNECT_FAILED     => 'konekto malsukcesa',
-            0                               => 'cxio bone', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'ne suficxe da datumo',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'etendo ne trovita',
-            DB_ERROR_NOSUCHDB           => 'datumbazo ne ekzistas',
-            DB_ERROR_ACCESS_VIOLATION   => 'ne suficxe da rajto por atingo'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-fa.inc.php b/lib/adodb/lang/adodb-fa.inc.php
deleted file mode 100644 (file)
index a58a21c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/* Farsi - by "Peyman Hooshmandi Raad" <phooshmand#gmail.com> */
-
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'fa',
-            DB_ERROR                    => 'خطای ناشناخته',
-            DB_ERROR_ALREADY_EXISTS     => 'وجود دارد',
-            DB_ERROR_CANNOT_CREATE      => 'امکان create وجود ندارد',
-            DB_ERROR_CANNOT_DELETE      => 'امکان حذف وجود ندارد',
-            DB_ERROR_CANNOT_DROP        => 'امکان drop وجود ندارد',
-            DB_ERROR_CONSTRAINT         => 'نقض شرط',
-            DB_ERROR_DIVZERO            => 'تقسیم بر صفر',
-            DB_ERROR_INVALID            => 'نامعتبر',
-            DB_ERROR_INVALID_DATE       => 'زمان یا تاریخ نامعتبر',
-            DB_ERROR_INVALID_NUMBER     => 'عدد نامعتبر',
-            DB_ERROR_MISMATCH           => 'عدم مطابقت',
-            DB_ERROR_NODBSELECTED       => 'بانک اطلاعاتی انتخاب نشده است',
-            DB_ERROR_NOSUCHFIELD        => 'چنین ستونی وجود ندارد',
-            DB_ERROR_NOSUCHTABLE        => 'چنین جدولی وجود ندارد',
-            DB_ERROR_NOT_CAPABLE        => 'backend بانک اطلاعاتی قادر نیست',
-            DB_ERROR_NOT_FOUND          => 'پیدا نشد',
-            DB_ERROR_NOT_LOCKED         => 'قفل نشده',
-            DB_ERROR_SYNTAX             => 'خطای دستوری',
-            DB_ERROR_UNSUPPORTED        => 'پشتیبانی نمی شود',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'شمارش مقادیر روی ردیف',
-            DB_ERROR_INVALID_DSN        => 'DSN نامعتبر',
-            DB_ERROR_CONNECT_FAILED     => 'ارتباط برقرار نشد',
-            0                         => 'بدون خطا', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'داده ناکافی است',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extension پیدا نشد',
-            DB_ERROR_NOSUCHDB           => 'چنین بانک اطلاعاتی وجود ندارد',
-            DB_ERROR_ACCESS_VIOLATION   => 'حق دسترسی ناکافی'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-fr.inc.php b/lib/adodb/lang/adodb-fr.inc.php
deleted file mode 100644 (file)
index 11127cd..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-$ADODB_LANG_ARRAY = array (
-       'LANG'                      => 'fr',
-       DB_ERROR                    => 'erreur inconnue',
-       DB_ERROR_ALREADY_EXISTS     => 'existe d&eacute;j&agrave;',
-       DB_ERROR_CANNOT_CREATE      => 'cr&eacute;tion impossible',
-       DB_ERROR_CANNOT_DELETE      => 'effacement impossible',
-       DB_ERROR_CANNOT_DROP        => 'suppression impossible',
-       DB_ERROR_CONSTRAINT         => 'violation de contrainte',
-       DB_ERROR_DIVZERO            => 'division par z&eacute;ro',
-       DB_ERROR_INVALID            => 'invalide',
-       DB_ERROR_INVALID_DATE       => 'date ou heure invalide',
-       DB_ERROR_INVALID_NUMBER     => 'nombre invalide',
-       DB_ERROR_MISMATCH           => 'erreur de concordance',
-       DB_ERROR_NODBSELECTED       => 'pas de base de donn&eacute;ess&eacute;lectionn&eacute;e',
-       DB_ERROR_NOSUCHFIELD        => 'nom de colonne invalide',
-       DB_ERROR_NOSUCHTABLE        => 'table ou vue inexistante',
-       DB_ERROR_NOT_CAPABLE        => 'fonction optionnelle non install&eacute;e',
-       DB_ERROR_NOT_FOUND          => 'pas trouv&eacute;',
-       DB_ERROR_NOT_LOCKED         => 'non verrouill&eacute;',
-       DB_ERROR_SYNTAX             => 'erreur de syntaxe',
-       DB_ERROR_UNSUPPORTED        => 'non support&eacute;',
-       DB_ERROR_VALUE_COUNT_ON_ROW => 'valeur ins&eacute;r&eacute;e trop grande pour colonne',
-       DB_ERROR_INVALID_DSN        => 'DSN invalide',
-       DB_ERROR_CONNECT_FAILED     => '&eacute;chec &agrave; la connexion',
-       0                        => "pas d'erreur", // DB_OK
-       DB_ERROR_NEED_MORE_DATA     => 'donn&eacute;es fournies insuffisantes',
-       DB_ERROR_EXTENSION_NOT_FOUND=> 'extension non trouv&eacute;e',
-       DB_ERROR_NOSUCHDB           => 'base de donn&eacute;es inconnue',
-       DB_ERROR_ACCESS_VIOLATION   => 'droits insuffisants'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-hu.inc.php b/lib/adodb/lang/adodb-hu.inc.php
deleted file mode 100644 (file)
index d6f0ef8..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-# Hungarian language, encoding by ISO 8859-2 charset (Iso Latin-2)
-# Halászvári Gábor <g.halaszvari#portmax.hu>
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'hu',
-            DB_ERROR                    => 'ismeretlen hiba',
-            DB_ERROR_ALREADY_EXISTS     => 'már létezik',
-            DB_ERROR_CANNOT_CREATE      => 'nem sikerült létrehozni',
-            DB_ERROR_CANNOT_DELETE      => 'nem sikerült törölni',
-            DB_ERROR_CANNOT_DROP        => 'nem sikerült eldobni',
-            DB_ERROR_CONSTRAINT         => 'szabályok megszegése',
-            DB_ERROR_DIVZERO            => 'osztás nullával',
-            DB_ERROR_INVALID            => 'érvénytelen',
-            DB_ERROR_INVALID_DATE       => 'érvénytelen dátum vagy idõ',
-            DB_ERROR_INVALID_NUMBER     => 'érvénytelen szám',
-            DB_ERROR_MISMATCH           => 'nem megfelelõ',
-            DB_ERROR_NODBSELECTED       => 'nincs kiválasztott adatbázis',
-            DB_ERROR_NOSUCHFIELD        => 'nincs ilyen mezõ',
-            DB_ERROR_NOSUCHTABLE        => 'nincs ilyen tábla',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend nem támogatja',
-            DB_ERROR_NOT_FOUND          => 'nem található',
-            DB_ERROR_NOT_LOCKED         => 'nincs lezárva',
-            DB_ERROR_SYNTAX             => 'szintaktikai hiba',
-            DB_ERROR_UNSUPPORTED        => 'nem támogatott',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'soron végzett érték számlálás',
-            DB_ERROR_INVALID_DSN        => 'hibás DSN',
-            DB_ERROR_CONNECT_FAILED     => 'sikertelen csatlakozás',
-            0                         => 'nincs hiba', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'túl kevés az adat',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'bõvítmény nem található',
-            DB_ERROR_NOSUCHDB           => 'nincs ilyen adatbázis',
-            DB_ERROR_ACCESS_VIOLATION   => 'nincs jogosultság'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-it.inc.php b/lib/adodb/lang/adodb-it.inc.php
deleted file mode 100644 (file)
index ac5cc5a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-// Italian language file contributed by Tiraboschi Massimiliano aka TiMax  
-// www.maxdev.com  timax@maxdev.com
-$ADODB_LANG_ARRAY = array (
-            'LANG'                      => 'it',
-            DB_ERROR                    => 'errore sconosciuto',
-            DB_ERROR_ALREADY_EXISTS     => 'esiste gi&agrave;',
-            DB_ERROR_CANNOT_CREATE      => 'non posso creare',
-            DB_ERROR_CANNOT_DELETE      => 'non posso cancellare',
-            DB_ERROR_CANNOT_DROP        => 'non posso eliminare',
-            DB_ERROR_CONSTRAINT         => 'violazione constraint',
-            DB_ERROR_DIVZERO            => 'divisione per zero',
-            DB_ERROR_INVALID            => 'non valido',
-            DB_ERROR_INVALID_DATE       => 'data od ora non valida',
-            DB_ERROR_INVALID_NUMBER     => 'numero non valido',
-            DB_ERROR_MISMATCH           => 'diversi',
-            DB_ERROR_NODBSELECTED       => 'nessun database selezionato',
-            DB_ERROR_NOSUCHFIELD        => 'nessun campo trovato',
-            DB_ERROR_NOSUCHTABLE        => 'nessuna tabella trovata',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend non abilitato',
-            DB_ERROR_NOT_FOUND          => 'non trovato',
-            DB_ERROR_NOT_LOCKED         => 'non bloccato',
-            DB_ERROR_SYNTAX             => 'errore di sintassi',
-            DB_ERROR_UNSUPPORTED        => 'non supportato',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'valore inserito troppo grande per una colonna',
-            DB_ERROR_INVALID_DSN        => 'DSN non valido',
-            DB_ERROR_CONNECT_FAILED     => 'connessione fallita',
-            0                           => 'nessun errore', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'dati inseriti insufficienti',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'estensione non trovata',
-            DB_ERROR_NOSUCHDB           => 'database non trovato',
-            DB_ERROR_ACCESS_VIOLATION   => 'permessi insufficienti'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-nl.inc.php b/lib/adodb/lang/adodb-nl.inc.php
deleted file mode 100644 (file)
index abe77b5..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// Translated by Pim Koeman (pim#wittenborg-university.com)
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'nl',
-            DB_ERROR                    => 'onbekende fout',
-            DB_ERROR_ALREADY_EXISTS     => 'bestaat al',
-            DB_ERROR_CANNOT_CREATE      => 'kan niet aanmaken',
-            DB_ERROR_CANNOT_DELETE      => 'kan niet wissen',
-            DB_ERROR_CANNOT_DROP        => 'kan niet verwijderen',
-            DB_ERROR_CONSTRAINT         => 'constraint overtreding',
-            DB_ERROR_DIVZERO            => 'poging tot delen door nul',
-            DB_ERROR_INVALID            => 'ongeldig',
-            DB_ERROR_INVALID_DATE       => 'ongeldige datum of tijd',
-            DB_ERROR_INVALID_NUMBER     => 'ongeldig nummer',
-            DB_ERROR_MISMATCH           => 'is incorrect',
-            DB_ERROR_NODBSELECTED       => 'geen database geselecteerd',
-            DB_ERROR_NOSUCHFIELD        => 'onbekend veld',
-            DB_ERROR_NOSUCHTABLE        => 'onbekende tabel',
-            DB_ERROR_NOT_CAPABLE        => 'database systeem is niet tot uitvoer in staat',
-            DB_ERROR_NOT_FOUND          => 'niet gevonden',
-            DB_ERROR_NOT_LOCKED         => 'niet vergrendeld',
-            DB_ERROR_SYNTAX             => 'syntaxis fout',
-            DB_ERROR_UNSUPPORTED        => 'niet ondersteund',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'waarde telling op rij',
-            DB_ERROR_INVALID_DSN        => 'ongeldige DSN',
-            DB_ERROR_CONNECT_FAILED     => 'connectie mislukt',
-            0                         => 'geen fout', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'onvoldoende data gegeven',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extensie niet gevonden',
-            DB_ERROR_NOSUCHDB           => 'onbekende database',
-            DB_ERROR_ACCESS_VIOLATION   => 'onvoldoende rechten'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-pl.inc.php b/lib/adodb/lang/adodb-pl.inc.php
deleted file mode 100644 (file)
index 9d9e390..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-// Contributed by Grzegorz Pacan <gp#dione.cc>
-
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'pl',
-            DB_ERROR                    => 'niezidentyfikowany b³±d',
-            DB_ERROR_ALREADY_EXISTS     => 'ju¿ istniej±',
-            DB_ERROR_CANNOT_CREATE      => 'nie mo¿na stworzyæ',
-            DB_ERROR_CANNOT_DELETE      => 'nie mo¿na usun±æ',
-            DB_ERROR_CANNOT_DROP        => 'nie mo¿na porzuciæ',
-            DB_ERROR_CONSTRAINT         => 'pogwa³cenie uprawnieñ',
-            DB_ERROR_DIVZERO            => 'dzielenie przez zero',
-            DB_ERROR_INVALID            => 'b³êdny',
-            DB_ERROR_INVALID_DATE       => 'b³êdna godzina lub data',
-            DB_ERROR_INVALID_NUMBER     => 'b³êdny numer',
-            DB_ERROR_MISMATCH           => 'niedopasowanie',
-            DB_ERROR_NODBSELECTED       => 'baza danych nie zosta³a wybrana',
-            DB_ERROR_NOSUCHFIELD        => 'nie znaleziono pola',
-            DB_ERROR_NOSUCHTABLE        => 'nie znaleziono tabeli',
-            DB_ERROR_NOT_CAPABLE        => 'nie zdolny',
-            DB_ERROR_NOT_FOUND          => 'nie znaleziono',
-            DB_ERROR_NOT_LOCKED         => 'nie zakmniêty',
-            DB_ERROR_SYNTAX             => 'b³±d sk³adni',
-            DB_ERROR_UNSUPPORTED        => 'nie obs³uguje',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'warto¶æ liczona w szeregu',
-            DB_ERROR_INVALID_DSN        => 'b³êdny DSN',
-            DB_ERROR_CONNECT_FAILED     => 'po³±czenie nie zosta³o zrealizowane',
-            0                         => 'brak b³êdów', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'niedostateczna ilo¶æ informacji',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'nie znaleziono rozszerzenia',
-            DB_ERROR_NOSUCHDB           => 'nie znaleziono bazy',
-            DB_ERROR_ACCESS_VIOLATION   => 'niedostateczne uprawnienia'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-pt-br.inc.php b/lib/adodb/lang/adodb-pt-br.inc.php
deleted file mode 100644 (file)
index cd28f7e..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-// contributed by "Levi Fukumori" levi _AT_ fukumori _DOT_ com _DOT_ br
-// portugese (brazilian)
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'pt-br',
-            DB_ERROR                    => 'erro desconhecido',
-            DB_ERROR_ALREADY_EXISTS     => 'já existe',
-            DB_ERROR_CANNOT_CREATE      => 'impossível criar',
-            DB_ERROR_CANNOT_DELETE      => 'impossível excluír',
-            DB_ERROR_CANNOT_DROP        => 'impossível remover',
-            DB_ERROR_CONSTRAINT         => 'violação do confinamente',
-            DB_ERROR_DIVZERO            => 'divisão por zero',
-            DB_ERROR_INVALID            => 'inválido',
-            DB_ERROR_INVALID_DATE       => 'data ou hora inválida',
-            DB_ERROR_INVALID_NUMBER     => 'número inválido',
-            DB_ERROR_MISMATCH           => 'erro',
-            DB_ERROR_NODBSELECTED       => 'nenhum banco de dados selecionado',
-            DB_ERROR_NOSUCHFIELD        => 'campo inválido',
-            DB_ERROR_NOSUCHTABLE        => 'tabela inexistente',
-            DB_ERROR_NOT_CAPABLE        => 'capacidade inválida para este BD',
-            DB_ERROR_NOT_FOUND          => 'não encontrado',
-            DB_ERROR_NOT_LOCKED         => 'não bloqueado',
-            DB_ERROR_SYNTAX             => 'erro de sintaxe',
-            DB_ERROR_UNSUPPORTED        => 
-'não suportado',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'a quantidade de colunas não corresponde ao de valores',
-            DB_ERROR_INVALID_DSN        => 'DSN inválido',
-            DB_ERROR_CONNECT_FAILED     => 'falha na conexão',
-            0                          => 'sem erro', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'dados insuficientes',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extensão não encontrada',
-            DB_ERROR_NOSUCHDB           => 'banco de dados não encontrado',
-            DB_ERROR_ACCESS_VIOLATION   => 'permissão insuficiente'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-ro.inc.php b/lib/adodb/lang/adodb-ro.inc.php
deleted file mode 100644 (file)
index bcd7d13..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-/* Romanian - by "bogdan stefan" <sbogdan#rsb.ro> */
-
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'ro',
-            DB_ERROR                    => 'eroare necunoscuta',
-            DB_ERROR_ALREADY_EXISTS     => 'deja exista',
-            DB_ERROR_CANNOT_CREATE      => 'nu se poate creea',
-            DB_ERROR_CANNOT_DELETE      => 'nu se poate sterge',
-            DB_ERROR_CANNOT_DROP        => 'nu se poate executa drop',
-            DB_ERROR_CONSTRAINT         => 'violare de constrain',
-            DB_ERROR_DIVZERO            => 'se divide la zero',
-            DB_ERROR_INVALID            => 'invalid',
-            DB_ERROR_INVALID_DATE       => 'data sau timp invalide',
-            DB_ERROR_INVALID_NUMBER     => 'numar invalid',
-            DB_ERROR_MISMATCH           => 'nepotrivire-mismatch',
-            DB_ERROR_NODBSELECTED       => 'nu exista baza de date selectata',
-            DB_ERROR_NOSUCHFIELD        => 'camp inexistent',
-            DB_ERROR_NOSUCHTABLE        => 'tabela inexistenta',
-            DB_ERROR_NOT_CAPABLE        => 'functie optionala neinstalata',
-            DB_ERROR_NOT_FOUND          => 'negasit',
-            DB_ERROR_NOT_LOCKED         => 'neblocat',
-            DB_ERROR_SYNTAX             => 'eroare de sintaxa',
-            DB_ERROR_UNSUPPORTED        => 'nu e suportat',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'valoare prea mare pentru coloana',
-            DB_ERROR_INVALID_DSN        => 'DSN invalid',
-            DB_ERROR_CONNECT_FAILED     => 'conectare esuata',
-            0                         => 'fara eroare', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'data introduse insuficiente',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extensie negasita',
-            DB_ERROR_NOSUCHDB           => 'nu exista baza de date',
-            DB_ERROR_ACCESS_VIOLATION   => 'permisiuni insuficiente'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-ru1251.inc.php b/lib/adodb/lang/adodb-ru1251.inc.php
deleted file mode 100644 (file)
index 1ccdde8..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-// Russian language file contributed by "Cyrill Malevanov" cyrill#malevanov.spb.ru.
-
-$ADODB_LANG_ARRAY = array (
-             'LANG'                      => 'ru1251',
-            DB_ERROR                    => '����������� ������',
-            DB_ERROR_ALREADY_EXISTS     => '��� ����������',
-            DB_ERROR_CANNOT_CREATE      => '���������� �������',
-            DB_ERROR_CANNOT_DELETE      => '���������� �������',
-            DB_ERROR_CANNOT_DROP        => '���������� ������� (drop)',
-            DB_ERROR_CONSTRAINT         => '��������� ������� ��������',
-            DB_ERROR_DIVZERO            => '������� �� 0',
-            DB_ERROR_INVALID            => '�����������',
-            DB_ERROR_INVALID_DATE       => '������������ ���� ��� �����',
-            DB_ERROR_INVALID_NUMBER     => '������������ �����',
-            DB_ERROR_MISMATCH           => '������',
-            DB_ERROR_NODBSELECTED       => '�� �� �������',
-            DB_ERROR_NOSUCHFIELD        => '�� ���������� ����',
-            DB_ERROR_NOSUCHTABLE        => '�� ���������� �������',
-            DB_ERROR_NOT_CAPABLE        => '���� �� � ���������',
-            DB_ERROR_NOT_FOUND          => '�� �������',
-            DB_ERROR_NOT_LOCKED         => '�� �������������',
-            DB_ERROR_SYNTAX             => '�������������� ������',
-            DB_ERROR_UNSUPPORTED        => '�� ��������������',
-            DB_ERROR_VALUE_COUNT_ON_ROW => '������� �������� � ������',
-            DB_ERROR_INVALID_DSN        => '������������ DSN',
-            DB_ERROR_CONNECT_FAILED     => '���������� ���������',
-            0                               => '��� ������', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => '������������� ������������ ������',
-            DB_ERROR_EXTENSION_NOT_FOUND=> '���������� �� �������',
-            DB_ERROR_NOSUCHDB           => '�� ���������� ��',
-            DB_ERROR_ACCESS_VIOLATION   => '������������ ���� �������'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-sv.inc.php b/lib/adodb/lang/adodb-sv.inc.php
deleted file mode 100644 (file)
index 268644a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// Christian Tiberg" christian@commsoft.nu
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'en',
-            DB_ERROR                    => 'Ok�nt fel',
-            DB_ERROR_ALREADY_EXISTS     => 'finns redan',
-            DB_ERROR_CANNOT_CREATE      => 'kan inte skapa',
-            DB_ERROR_CANNOT_DELETE      => 'kan inte ta bort',
-            DB_ERROR_CANNOT_DROP        => 'kan inte sl�ppa',
-            DB_ERROR_CONSTRAINT         => 'begr�nsning kr�nkt',
-            DB_ERROR_DIVZERO            => 'division med noll',
-            DB_ERROR_INVALID            => 'ogiltig',
-            DB_ERROR_INVALID_DATE       => 'ogiltigt datum eller tid',
-            DB_ERROR_INVALID_NUMBER     => 'ogiltigt tal',
-            DB_ERROR_MISMATCH           => 'felaktig matchning',
-            DB_ERROR_NODBSELECTED       => 'ingen databas vald',
-            DB_ERROR_NOSUCHFIELD        => 'inget s�dant f�lt',
-            DB_ERROR_NOSUCHTABLE        => 'ingen s�dan tabell',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend klarar det inte',
-            DB_ERROR_NOT_FOUND          => 'finns inte',
-            DB_ERROR_NOT_LOCKED         => 'inte l�st',
-            DB_ERROR_SYNTAX             => 'syntaxfel',
-            DB_ERROR_UNSUPPORTED        => 'st�ds ej',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'v�rde r�knat p� rad',
-            DB_ERROR_INVALID_DSN        => 'ogiltig DSN',
-            DB_ERROR_CONNECT_FAILED     => 'anslutning misslyckades',
-            0                         => 'inget fel', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'otillr�ckligt med data angivet',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'ut�kning hittades ej',
-            DB_ERROR_NOSUCHDB           => 'ingen s�dan databas',
-            DB_ERROR_ACCESS_VIOLATION   => 'otillr�ckliga r�ttigheter'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb-uk1251.inc.php b/lib/adodb/lang/adodb-uk1251.inc.php
deleted file mode 100644 (file)
index 675016d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-// Ukrainian language file contributed by  Alex Rootoff rootoff{AT}pisem.net.
-
-$ADODB_LANG_ARRAY = array (
-             'LANG'                      => 'uk1251',
-            DB_ERROR                    => 'íåâ³äîìà ïîìèëêà',
-            DB_ERROR_ALREADY_EXISTS     => 'âæå ³ñíóº',
-            DB_ERROR_CANNOT_CREATE      => 'íåìîæëèâî ñòâîðèòè',
-            DB_ERROR_CANNOT_DELETE      => 'íåìîæëèâî âèäàëèòè',
-            DB_ERROR_CANNOT_DROP        => 'íåìîæëèâî çíèùèòè (drop)',
-            DB_ERROR_CONSTRAINT         => 'ïîðóøåííÿ óìîâ ïåðåâ³ðêè',
-            DB_ERROR_DIVZERO            => 'ä³ëåííÿ íà 0',
-            DB_ERROR_INVALID            => 'íåïðàâèëüíî',
-            DB_ERROR_INVALID_DATE       => 'íåïðàâèëüíà äàòà ÷è ÷àñ',
-            DB_ERROR_INVALID_NUMBER     => 'íåïðàâèëüíå ÷èñëî',
-            DB_ERROR_MISMATCH           => 'ïîìèëêà',
-            DB_ERROR_NODBSELECTED       => 'íå âèáðàíî ÁÄ',
-            DB_ERROR_NOSUCHFIELD        => 'íå ³ñíóº ïîëå',
-            DB_ERROR_NOSUCHTABLE        => 'íå ³ñíóº òàáëèöÿ',
-            DB_ERROR_NOT_CAPABLE        => 'ÑÓÁÄ íå â ñòàí³',
-            DB_ERROR_NOT_FOUND          => 'íå çíàéäåíî',
-            DB_ERROR_NOT_LOCKED         => 'íå çàáëîêîâàíî',
-            DB_ERROR_SYNTAX             => 'ñèíòàêñè÷íà ïîìèëêà',
-            DB_ERROR_UNSUPPORTED        => 'íå ï³äòðèìóºòüñÿ',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'ðàõ³âíèê çíà÷åíü â ñòð³÷ö³',
-            DB_ERROR_INVALID_DSN        => 'íåïðàâèëüíà DSN',
-            DB_ERROR_CONNECT_FAILED     => 'ç\'ºäíàííÿ íåóñï³øíå',
-            0                               => 'âñå ãàðàçä', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'íàäàíî íåäîñòàòíüî äàíèõ',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'ðîçøèðåííÿ íå çíàéäåíî',
-            DB_ERROR_NOSUCHDB           => 'íå ³ñíóº ÁÄ',
-            DB_ERROR_ACCESS_VIOLATION   => 'íåäîñòàòíüî ïðàâ äîñòóïà'
-);
-?>
\ No newline at end of file
diff --git a/lib/adodb/lang/adodb_th.inc.php b/lib/adodb/lang/adodb_th.inc.php
deleted file mode 100644 (file)
index 3fdd997..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// by Trirat Petchsingh <rosskouk#gmail.com>
-$ADODB_LANG_ARRAY = array (
-                       'LANG'                      => 'th',
-            DB_ERROR                    => 'error ไม่รู้สาเหตุ',
-            DB_ERROR_ALREADY_EXISTS     => 'มีà¹?ลà¹\89ว',
-            DB_ERROR_CANNOT_CREATE      => 'สร้างไม่ได้',
-            DB_ERROR_CANNOT_DELETE      => 'ลบไม่ได้',
-            DB_ERROR_CANNOT_DROP        => 'drop ไม่ได้',
-            DB_ERROR_CONSTRAINT         => 'constraint violation',
-            DB_ERROR_DIVZERO            => 'หาà¸?à¸\94à¹\89วยสูà¸?',
-            DB_ERROR_INVALID            => 'ไม่ valid',
-            DB_ERROR_INVALID_DATE       => 'วันที่ เวลา ไม่ valid',
-            DB_ERROR_INVALID_NUMBER     => 'เลขไม่ valid',
-            DB_ERROR_MISMATCH           => 'mismatch',
-            DB_ERROR_NODBSELECTED       => 'à¹\84มà¹\88à¹\84à¸\94à¹\89à¹\80ลือà¸?à¸?าà¸\99à¸\82à¹\89อมูล',
-            DB_ERROR_NOSUCHFIELD        => 'ไม่มีฟีลด์นี้',
-            DB_ERROR_NOSUCHTABLE        => 'ไม่มีตารางนี้',
-            DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
-            DB_ERROR_NOT_FOUND          => 'ไม่พบ',
-            DB_ERROR_NOT_LOCKED         => 'à¹\84มà¹\88à¹\84à¸\94à¹\89ลà¹\8aอà¸?',
-            DB_ERROR_SYNTAX             => 'ผิด syntax',
-            DB_ERROR_UNSUPPORTED        => 'ไม่ support',
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
-            DB_ERROR_INVALID_DSN        => 'invalid DSN',
-            DB_ERROR_CONNECT_FAILED     => 'ไม่สามารถ connect',
-            0                          => 'no error', // DB_OK
-            DB_ERROR_NEED_MORE_DATA     => 'ข้อมูลไม่เพียงพอ',
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'ไม่พบ extension',
-            DB_ERROR_NOSUCHDB           => 'ไม่มีข้อมูลนี้',
-            DB_ERROR_ACCESS_VIOLATION   => 'permissions ไม่พอ'
-);
-?>
\ No newline at end of file
index 1a88d46..7531e59 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 382f3a9..9dc3e9b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 87ab6a7..0ddd3a8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 c609620..3419389 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 3c5e345..ac35173 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 d5e75aa..115fc45 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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. 
@@ -81,12 +81,21 @@ AND    b.name = 'sorts (memory)'",
                        '' ),                   
        
        'Memory Pools',
+               'Mem Max Target (11g+)' => array( 'DATAC',
+               "select value from v\$parameter where name = 'memory_max_target'",
+                       'The memory_max_size is the maximum value to which memory_target can be set.' ),
+       'Memory target (11g+)' => array( 'DATAC',
+               "select value from v\$parameter where name = 'memory_target'",
+                       'If memory_target is defined then SGA and PGA targets are consolidated into one memory_target.' ),
                'SGA Max Size' => array( 'DATAC',
-               "select value from v\$parameter where name = 'sga_max_size'",
+               "select nvl(value,0)/1024.0/1024 || 'M' from v\$parameter where name = 'sga_max_size'",
                        'The sga_max_size is the maximum value to which sga_target can be set.' ),
        'SGA target' => array( 'DATAC',
-               "select value from v\$parameter where name = 'sga_target'",
+               "select nvl(value,0)/1024.0/1024 || 'M'  from v\$parameter where name = 'sga_target'",
                        'If sga_target is defined then data cache, shared, java and large pool size can be 0. This is because all these pools are consolidated into one sga_target.' ),
+       'PGA aggr target' => array( 'DATAC',
+               "select value from v\$parameter where name = 'pga_aggregate_target'",
+                       'If pga_aggregate_target is defined then this is the maximum memory that can be allocated for cursor operations such as sorts, group by, joins, merges. When in doubt, set it to 20% of sga_target.' ),
        'data cache size' => array('DATAC',
                        "select value from v\$parameter where name = 'db_cache_size'",
                        'db_cache_size' ),
@@ -104,6 +113,7 @@ AND    b.name = 'sorts (memory)'",
                        "select value from v\$parameter where name='pga_aggregate_target'",
                        'program global area is private memory for sorting, and hash and bitmap merges - since oracle 9i (pga_aggregate_target)' ),
 
+               'dynamic memory usage' => array('CACHE', "select '-' from dual", '=DynMemoryUsage'),
                
                'Connections',
                'current connections' => array('SESS',
@@ -184,8 +194,15 @@ having count(*) > 100)",'These are sql statements that should be using bind vari
                'Archive Log Dest' => array('BACKUP', "SELECT NVL(v1.value,v2.value) 
 FROM v\$parameter v1, v\$parameter v2 WHERE v1.name='log_archive_dest' AND v2.name='log_archive_dest_10'", ''),
        
-       'Flashback Area' => array('BACKUP', "select nvl(value,'Flashback Area not used') from v\$parameter where name=lower('DB_RECOVERY_FILE_DEST')", 'Flashback area is a folder where all backup data and logs can be stored and managed by Oracle. If Error: message displayed, then it is not in use.'),
+               'Flashback Area' => array('BACKUP', "select nvl(value,'Flashback Area not used') from v\$parameter where name=lower('DB_RECOVERY_FILE_DEST')", 'Flashback area is a folder where all backup data and logs can be stored and managed by Oracle. If Error: message displayed, then it is not in use.'),
+       
+               'Flashback Usage' => array('BACKUP', "select nvl('-','Flashback Area not used') from v\$parameter where name=lower('DB_RECOVERY_FILE_DEST')", '=FlashUsage', 'Flashback area usage.'),
+               
                'Control File Keep Time' => array('BACKUP', "select value from v\$parameter where name='control_file_record_keep_time'",'No of days to keep RMAN info in control file. I recommend it be set to x2 or x3 times the frequency of your full backup.'),
+               'Recent RMAN Jobs' => array('BACKUP', "select '-' from dual", "=RMAN"),
+               
+               //              'Control File Keep Time' => array('BACKUP', "select value from v\$parameter where name='control_file_record_keep_time'",'No of days to keep RMAN info in control file. I recommend it be set to x2 or x3 times the frequency of your full backup.'),
+
                false
                
        );
@@ -199,6 +216,35 @@ FROM v\$parameter v1, v\$parameter v2 WHERE v1.name='log_archive_dest' AND v2.na
                $this->conn = $conn;
        }
        
+       function RMAN()
+       {
+               $rs = $this->conn->Execute("select * from (select start_time, end_time, operation, status, mbytes_processed, output_device_type  
+                       from V\$RMAN_STATUS order by start_time desc) where rownum <=10");
+               
+               $ret = rs2html($rs,false,false,false,false);            
+               return "&nbsp;<p>".$ret."&nbsp;</p>";
+               
+       }
+       function DynMemoryUsage()
+       {
+               if (@$this->version['version'] >= 11) {
+                       $rs = $this->conn->Execute("select component, current_size/1024./1024 as \"CurrSize (M)\" from  V\$MEMORY_DYNAMIC_COMPONENTS");
+
+               } else
+                       $rs = $this->conn->Execute("select name, round(bytes/1024./1024,2) as \"CurrSize (M)\" from  V\$sgainfo");
+
+                       
+               $ret = rs2html($rs,false,false,false,false);            
+               return "&nbsp;<p>".$ret."&nbsp;</p>";
+       }
+       
+       function FlashUsage()
+       {
+        $rs = $this->conn->Execute("select * from  V\$FLASH_RECOVERY_AREA_USAGE");
+               $ret = rs2html($rs,false,false,false,false);            
+               return "&nbsp;<p>".$ret."&nbsp;</p>";
+       }
+       
        function WarnPageCost($val)
        {
                if ($val == 100) $s = '<font color=red><b>Too High</b>. </font>';
@@ -222,10 +268,10 @@ FROM v\$parameter v1, v\$parameter v2 WHERE v1.name='log_archive_dest' AND v2.na
                if ($this->version['version'] < 9) return 'Oracle 9i or later required';
                
                $rs = $this->conn->Execute("select a.mb,a.targ as pga_size_pct,a.pct from 
-          (select round(pga_target_for_estimate/1024.0/1024.0,0) Mb,
+          (select round(pga_target_for_estimate/1024.0/1024.0,0) MB,
                   pga_target_factor targ,estd_pga_cache_hit_percentage pct,rownum as r 
                   from v\$pga_target_advice) a left join
-          (select round(pga_target_for_estimate/1024.0/1024.0,0) Mb,
+          (select round(pga_target_for_estimate/1024.0/1024.0,0) MB,
                   pga_target_factor targ,estd_pga_cache_hit_percentage pct,rownum as r 
                   from v\$pga_target_advice) b on 
          a.r = b.r+1 where 
@@ -322,15 +368,17 @@ CONNECT BY prior id=parent_id and statement_id='$id'");
                if ($this->version['version'] < 9) return 'Oracle 9i or later required';
                
                 $rs = $this->conn->Execute("
-select  a.size_for_estimate as cache_mb_estimate,
-       case when a.size_factor=1 then 
-               '&lt;&lt;= current'
-        when a.estd_physical_read_factor-b.estd_physical_read_factor > 0 and a.estd_physical_read_factor<1 then
-               '- BETTER - '
-       else ' ' end as currsize, 
-   a.estd_physical_read_factor-b.estd_physical_read_factor as best_when_0
-   from (select size_for_estimate,size_factor,estd_physical_read_factor,rownum  r from v\$db_cache_advice) a , 
-   (select size_for_estimate,size_factor,estd_physical_read_factor,rownum r from v\$db_cache_advice) b where a.r = b.r-1");
+select  b.size_for_estimate as cache_mb_estimate, 
+       case when b.size_factor=1 then 
+               '&lt;&lt;= Current'
+        when a.estd_physical_read_factor-b.estd_physical_read_factor > 0.001 and b.estd_physical_read_factor<1 then
+               '- BETTER than current by ' || round((1-b.estd_physical_read_factor)/b.estd_physical_read_factor*100,2) || '%'
+       else ' ' end as RATING, 
+   b.estd_physical_read_factor \"Phys. Reads Factor\",
+   round((a.estd_physical_read_factor-b.estd_physical_read_factor)/b.estd_physical_read_factor*100,2) as \"% Improve\"
+   from (select size_for_estimate,size_factor,estd_physical_read_factor,rownum  r from v\$db_cache_advice order by 1) a , 
+   (select size_for_estimate,size_factor,estd_physical_read_factor,rownum r from v\$db_cache_advice order by 1) b where a.r = b.r-1
+  ");
                if (!$rs) return false;
                
                /*
@@ -340,7 +388,7 @@ select  a.size_for_estimate as cache_mb_estimate,
                if ($rs->EOF) {
                        $s .= "<p>Cache that is 50% of current size is still too big</p>";
                } else {
-                       $s .= "Ideal size of Data Cache is when \"best_when_0\" changes from a positive number and becomes zero.";
+                       $s .= "Ideal size of Data Cache is when %Improve gets close to zero.";
                        $s .= rs2html($rs,false,false,false,false);
                }
                return $s;
index b376529..7cb9ea2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /* 
-V5.10 10 Nov 2009   (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+V5.11 5 May 2010   (c) 2000-2010 John Lim (jlim#natsoft.com). 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 8978903..48890b8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.93 10 Oct 2006 (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2010 John Lim (jlim#natsoft.com). 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 f9ffd1e..2508195 100644 (file)
@@ -1,8 +1,8 @@
-Description of ADODB V5.10 library import into Moodle
+Description of ADODB V5.11 library import into Moodle
 
 This library will be probably removed in Moodle 2.1,
 it is now used only in enrol and auth db plugins.
-The core DML drivers are not using ADODB any more. 
+The core DML drivers are not using ADODB any more.
 
 Removed:
  * contrib/
@@ -12,6 +12,7 @@ Removed:
  * session/
  * tests/
  * server.php
+ * lang/* except en (because they were not in utf8)
 
 Added:
  * index.html - prevent directory browsing on misconfigured servers
index 6f3d646..501ffc9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /** 
- * @version V4.93 10 Oct 2006 (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2010 John Lim (jlim#natsoft.com). 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 57b8bd1..6975b51 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /** 
- * @version V4.93 10 Oct 2006 (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+ * @version V4.93 10 Oct 2006 (c) 2000-2010 John Lim (jlim#natsoft.com). 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 6a4e3ba..7624566 100644 (file)
@@ -1,6 +1,6 @@
 <?php 
 /*
-  V4.93 10 Oct 2006  (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
+  V4.93 10 Oct 2006  (c) 2000-2010 John Lim (jlim#natsoft.com). 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.