"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/datadict/datadict-informix.inc.php Source File", "datetime" => "Sat Dec 2 19:22:25 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

datadict-informix.inc.php

00001 <?php
00002 
00013 // security - hide paths
00014 if (!defined('ADODB_DIR')) die();
00015 
00016 class ADODB2_informix extends ADODB_DataDict {
00017         
00018         var $databaseType = 'informix';
00019         var $seqField = false;
00020         
00021         
00022         function ActualType($meta)
00023         {
00024                 switch($meta) {
00025                 case 'C': return 'VARCHAR';// 255
00026                 case 'XL':
00027                 case 'X': return 'TEXT'; 
00028                 
00029                 case 'C2': return 'NVARCHAR';
00030                 case 'X2': return 'TEXT';
00031                 
00032                 case 'B': return 'BLOB';
00033                         
00034                 case 'D': return 'DATE';
00035                 case 'T': return 'DATETIME';
00036                 
00037                 case 'L': return 'SMALLINT';
00038                 case 'I': return 'INTEGER';
00039                 case 'I1': return 'SMALLINT';
00040                 case 'I2': return 'SMALLINT';
00041                 case 'I4': return 'INTEGER';
00042                 case 'I8': return 'DECIMAL(20)';
00043                 
00044                 case 'F': return 'FLOAT';
00045                 case 'N': return 'DECIMAL';
00046                 default:
00047                         return $meta;
00048                 }
00049         }
00050 
00051         function AlterColumnSQL($tabname, $flds)
00052         {
00053                 if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported");
00054                 return array();
00055         }
00056         
00057         
00058         function DropColumnSQL($tabname, $flds)
00059         {
00060                 if ($this->debug) ADOConnection::outp("DropColumnSQL not supported");
00061                 return array();
00062         }
00063         
00064         // return string must begin with space
00065         function _CreateSuffix($fname, &$ftype, $fnotnull,$fdefault,$fautoinc,$fconstraint)
00066         {
00067                 if ($fautoinc) {
00068                         $ftype = 'SERIAL';
00069                         return '';
00070                 }
00071                 $suffix = '';
00072                 if (strlen($fdefault)) $suffix .= " DEFAULT $fdefault";
00073                 if ($fnotnull) $suffix .= ' NOT NULL';
00074                 if ($fconstraint) $suffix .= ' '.$fconstraint;
00075                 return $suffix;
00076         }
00077         
00078 }
00079 
00080 ?>