Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402]

   1  <?php
   2  /**
   3   * Microsoft Access ADO driver.
   4   *
   5   * Requires ADO and ODBC. Works only on MS Windows.
   6   *
   7   * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
   8   *
   9   * @package ADOdb
  10   * @link https://adodb.org Project's web site and documentation
  11   * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
  12   *
  13   * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
  14   * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
  15   * any later version. This means you can use it in proprietary products.
  16   * See the LICENSE.md file distributed with this source code for details.
  17   * @license BSD-3-Clause
  18   * @license LGPL-2.1-or-later
  19   *
  20   * @copyright 2000-2013 John Lim
  21   * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
  22   */
  23  
  24  // security - hide paths
  25  if (!defined('ADODB_DIR')) die();
  26  
  27  if (!defined('_ADODB_ADO_LAYER')) {
  28  	 include_once(ADODB_DIR . "/drivers/adodb-ado5.inc.php");
  29  }
  30  
  31  class  ADODB_ado_access extends ADODB_ado {
  32  	 var $databaseType = 'ado_access';
  33  	 var $hasTop = 'top';	 	 // support mssql SELECT TOP 10 * FROM TABLE
  34  	 var $fmtDate = "#Y-m-d#";
  35  	 var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma
  36  	 var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')";
  37  	 var $sysTimeStamp = 'NOW';
  38  	 var $upperCase = 'ucase';
  39  
  40  	 /*function BeginTrans() { return false;}
  41  
  42  	 function CommitTrans() { return false;}
  43  
  44  	 function RollbackTrans() { return false;}*/
  45  
  46  }
  47  
  48  
  49  class  ADORecordSet_ado_access extends ADORecordSet_ado {
  50  
  51  	 var $databaseType = "ado_access";
  52  
  53  }