Fixes to the PaintWeb cron task.
[moodle/mihaisucan.git] / lib / adodb / datadict / datadict-ibase.inc.php
blobac171f509e2f7481509bbe21aef858c0fc1ce536
1 <?php
3 /**
4 V4.98 13 Feb 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
5 Released under both BSD license and Lesser GPL library license.
6 Whenever there is any discrepancy between the two licenses,
7 the BSD license will take precedence.
9 Set tabs to 4 for best viewing.
13 // security - hide paths
14 if (!defined('ADODB_DIR')) die();
16 class ADODB2_ibase extends ADODB_DataDict {
18 var $databaseType = 'ibase';
19 var $seqField = false;
22 function ActualType($meta)
24 switch($meta) {
25 case 'C': return 'VARCHAR';
26 case 'XL':
27 case 'X': return 'VARCHAR(4000)';
29 case 'C2': return 'VARCHAR'; // up to 32K
30 case 'X2': return 'VARCHAR(4000)';
32 case 'B': return 'BLOB';
34 case 'D': return 'DATE';
35 case 'T': return 'TIMESTAMP';
37 case 'L': return 'SMALLINT';
38 case 'I': return 'INTEGER';
39 case 'I1': return 'SMALLINT';
40 case 'I2': return 'SMALLINT';
41 case 'I4': return 'INTEGER';
42 case 'I8': return 'INTEGER';
44 case 'F': return 'DOUBLE PRECISION';
45 case 'N': return 'DECIMAL';
46 default:
47 return $meta;
51 function AlterColumnSQL($tabname, $flds)
53 if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported");
54 return array();
58 function DropColumnSQL($tabname, $flds)
60 if ($this->debug) ADOConnection::outp("DropColumnSQL not supported");
61 return array();