[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/adodb_lite/adodbSQL_drivers/generic/ -> maxdb_datadict.inc (source)

   1  <?php
   2  /**
   3    V4.65 22 July 2005  (c) 2000-2005 John Lim (jlim@natsoft.com.my). All rights reserved.
   4    Released under both BSD license and Lesser GPL library license. 
   5    Whenever there is any discrepancy between the two licenses, 
   6    the BSD license will take precedence.
   7      
   8    Set tabs to 4 for best viewing.
   9    
  10    Modified 28 August, 2005 for use with ADOdb Lite by Mark Dickenson
  11    
  12  */
  13  
  14  // security - hide paths
  15  if (!defined('ADODB_DIR')) die();
  16  
  17  class ADODB2_maxdb extends ADODB_DataDict {
  18  
  19      var $dbtype = 'maxdb';
  20      var $seqField = false;
  21      
  22       
  23   	function ActualType($meta)
  24      {
  25          switch($meta) {
  26          case 'C': return 'VARCHAR';
  27          case 'XL':
  28          case 'X': return 'VARCHAR(250)';
  29          
  30          case 'C2': return 'VARCHAR';
  31          case 'X2': return 'VARCHAR(250)';
  32          
  33          case 'B': return 'VARCHAR';
  34              
  35          case 'D': return 'DATE';
  36          case 'T': return 'DATE';
  37          
  38          case 'L': return 'DECIMAL(1)';
  39          case 'I': return 'DECIMAL(10)';
  40          case 'I1': return 'DECIMAL(3)';
  41          case 'I2': return 'DECIMAL(5)';
  42          case 'I4': return 'DECIMAL(10)';
  43          case 'I8': return 'DECIMAL(20)';
  44          
  45          case 'F': return 'DECIMAL(32,8)';
  46          case 'N': return 'DECIMAL';
  47          default:
  48              return $meta;
  49          }
  50      }
  51  
  52  	function AlterColumnSQL($tabname, $flds)
  53      {
  54          if ($this->debug) $this->outp("AlterColumnSQL not supported");
  55          return array();
  56      }
  57      
  58      
  59  	function DropColumnSQL($tabname, $flds)
  60      {
  61          if ($this->debug) $this->outp("DropColumnSQL not supported");
  62          return array();
  63      }
  64  
  65  //    function MetaType($t,$len=-1,$fieldobj=false)
  66  //    {
  67  //    }
  68  
  69  //    function &MetaTables($ttype=false,$showSchema=false,$mask=false) 
  70  //    {
  71  //        global $ADODB_FETCH_MODE;
  72  //    }
  73  
  74  //    function &MetaColumns($table,$upper=true) 
  75  //    {
  76  //        global $ADODB_FETCH_MODE;
  77  //    }
  78  
  79  //    function MetaPrimaryKeys($table, $owner=false)
  80  //    {
  81  //    }
  82  
  83  //     function &MetaIndexes($table, $primary = false, $owner = false)
  84  //     {
  85  //     }
  86  
  87  }
  88  
  89  ?>


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7