Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

   1  <?php
   2  /*
   3  @version   v5.21.0  2021-02-27
   4  @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
   5  @copyright (c) 2014      Damien Regad, Mark Newnham and the ADOdb community
   6  Released under both BSD license and Lesser GPL library license.
   7  Whenever there is any discrepancy between the two licenses,
   8  the BSD license will take precedence. See License.txt.
   9  Set tabs to 4 for best viewing.
  10  
  11    Latest version is available at https://adodb.org/
  12  
  13  	 Microsoft Access ADO data driver. Requires ADO and ODBC. Works only on MS Windows.
  14  */
  15  
  16  // security - hide paths
  17  if (!defined('ADODB_DIR')) die();
  18  
  19  if (!defined('_ADODB_ADO_LAYER')) {
  20  	 include_once(ADODB_DIR . "/drivers/adodb-ado5.inc.php");
  21  }
  22  
  23  class  ADODB_ado_access extends ADODB_ado {
  24  	 var $databaseType = 'ado_access';
  25  	 var $hasTop = 'top';	 	 // support mssql SELECT TOP 10 * FROM TABLE
  26  	 var $fmtDate = "#Y-m-d#";
  27  	 var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma
  28  	 var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')";
  29  	 var $sysTimeStamp = 'NOW';
  30  	 var $upperCase = 'ucase';
  31  
  32  	 /*function BeginTrans() { return false;}
  33  
  34  	 function CommitTrans() { return false;}
  35  
  36  	 function RollbackTrans() { return false;}*/
  37  
  38  }
  39  
  40  
  41  class  ADORecordSet_ado_access extends ADORecordSet_ado {
  42  
  43  	 var $databaseType = "ado_access";
  44  
  45  }