source: sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/datadict/datadict-ibase.inc.php @ 8222

Revision 8222, 1.3 KB checked in by angelo, 11 years ago (diff)

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2
3/**
4  V5.18 3 Sep 2012  (c) 2000-2012 John Lim (jlim#natsoft.com). 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.
8       
9  Set tabs to 4 for best viewing.
10 
11*/
12
13// security - hide paths
14if (!defined('ADODB_DIR')) die();
15
16class ADODB2_ibase extends ADODB_DataDict {
17       
18        var $databaseType = 'ibase';
19        var $seqField = false;
20       
21       
22        function ActualType($meta)
23        {
24                switch($meta) {
25                case 'C': return 'VARCHAR';
26                case 'XL':
27                case 'X': return 'VARCHAR(4000)';
28               
29                case 'C2': return 'VARCHAR'; // up to 32K
30                case 'X2': return 'VARCHAR(4000)';
31               
32                case 'B': return 'BLOB';
33                       
34                case 'D': return 'DATE';
35                case 'TS':
36                case 'T': return 'TIMESTAMP';
37               
38                case 'L': return 'SMALLINT';
39                case 'I': return 'INTEGER';
40                case 'I1': return 'SMALLINT';
41                case 'I2': return 'SMALLINT';
42                case 'I4': return 'INTEGER';
43                case 'I8': return 'INTEGER';
44               
45                case 'F': return 'DOUBLE PRECISION';
46                case 'N': return 'DECIMAL';
47                default:
48                        return $meta;
49                }
50        }
51
52        function AlterColumnSQL($tabname, $flds)
53        {
54                if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported");
55                return array();
56        }
57       
58       
59        function DropColumnSQL($tabname, $flds)
60        {
61                if ($this->debug) ADOConnection::outp("DropColumnSQL not supported");
62                return array();
63        }
64       
65}
66
67
68?>
Note: See TracBrowser for help on using the repository browser.