00001 <?php
00002
00013
00014 if (!defined('ADODB_DIR')) die();
00015
00016 class ADODB2_generic extends ADODB_DataDict {
00017
00018 var $databaseType = 'generic';
00019 var $seqField = false;
00020
00021
00022 function ActualType($meta)
00023 {
00024 switch($meta) {
00025 case 'C': return 'VARCHAR';
00026 case 'XL':
00027 case 'X': return 'VARCHAR(250)';
00028
00029 case 'C2': return 'VARCHAR';
00030 case 'X2': return 'VARCHAR(250)';
00031
00032 case 'B': return 'VARCHAR';
00033
00034 case 'D': return 'DATE';
00035 case 'T': return 'DATE';
00036
00037 case 'L': return 'DECIMAL(1)';
00038 case 'I': return 'DECIMAL(10)';
00039 case 'I1': return 'DECIMAL(3)';
00040 case 'I2': return 'DECIMAL(5)';
00041 case 'I4': return 'DECIMAL(10)';
00042 case 'I8': return 'DECIMAL(20)';
00043
00044 case 'F': return 'DECIMAL(32,8)';
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 }
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 ?>