Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

   1  <?php
   2  
   3  /**
   4    @version   v5.20.16  12-Jan-2020
   5    @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
   6    @copyright (c) 2014      Damien Regad, Mark Newnham and the ADOdb community
   7    Released under both BSD license and Lesser GPL library license.
   8    Whenever there is any discrepancy between the two licenses,
   9    the BSD license will take precedence.
  10  
  11    Set tabs to 4 for best viewing.
  12  
  13  */
  14  
  15  // security - hide paths
  16  if (!defined('ADODB_DIR')) die();
  17  
  18  class ADODB2_ibase extends ADODB_DataDict {
  19  
  20  	 var $databaseType = 'ibase';
  21  	 var $seqField = false;
  22  
  23  
  24   	function ActualType($meta)
  25  	 {
  26  	 	 switch($meta) {
  27  	 	 case 'C': return 'VARCHAR';
  28  	 	 case 'XL':
  29  	 	 case 'X': return 'VARCHAR(4000)';
  30  
  31  	 	 case 'C2': return 'VARCHAR'; // up to 32K
  32  	 	 case 'X2': return 'VARCHAR(4000)';
  33  
  34  	 	 case 'B': return 'BLOB';
  35  
  36  	 	 case 'D': return 'DATE';
  37  	 	 case 'TS':
  38  	 	 case 'T': return 'TIMESTAMP';
  39  
  40  	 	 case 'L': return 'SMALLINT';
  41  	 	 case 'I': return 'INTEGER';
  42  	 	 case 'I1': return 'SMALLINT';
  43  	 	 case 'I2': return 'SMALLINT';
  44  	 	 case 'I4': return 'INTEGER';
  45  	 	 case 'I8': return 'INTEGER';
  46  
  47  	 	 case 'F': return 'DOUBLE PRECISION';
  48  	 	 case 'N': return 'DECIMAL';
  49  	 	 default:
  50  	 	 	 return $meta;
  51  	 	 }
  52  	 }
  53  
  54  	function AlterColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
  55  	 {
  56  	 	 if ($this->debug) ADOConnection::outp("AlterColumnSQL not supported");
  57  	 	 return array();
  58  	 }
  59  
  60  
  61  	function DropColumnSQL($tabname, $flds, $tableflds='', $tableoptions='')
  62  	 {
  63  	 	 if ($this->debug) ADOConnection::outp("DropColumnSQL not supported");
  64  	 	 return array();
  65  	 }
  66  
  67  }