source: trunk/phpgwapi/inc/adodb/drivers/adodb-ado_access.inc.php @ 34

Revision 34, 1.4 KB checked in by niltonneto, 17 years ago (diff)

Versão nova do ADODB (4.5 para 4.95)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
RevLine 
[2]1<?php
2/*
[34]3V4.94 23 Jan 2007  (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved.
[2]4Released under both BSD license and Lesser GPL library license.
5Whenever there is any discrepancy between the two licenses,
6the BSD license will take precedence. See License.txt.
7Set tabs to 4 for best viewing.
8 
9  Latest version is available at http://adodb.sourceforge.net
10 
11        Microsoft Access ADO data driver. Requires ADO and ODBC. Works only on MS Windows.
12*/
13
14// security - hide paths
15if (!defined('ADODB_DIR')) die();
16
17if (!defined('_ADODB_ADO_LAYER')) {
[34]18        if (PHP_VERSION >= 5) include(ADODB_DIR."/drivers/adodb-ado5.inc.php");
19        else include(ADODB_DIR."/drivers/adodb-ado.inc.php");
[2]20}
21
22class  ADODB_ado_access extends ADODB_ado {     
23        var $databaseType = 'ado_access';
24        var $hasTop = 'top';            // support mssql SELECT TOP 10 * FROM TABLE
25        var $fmtDate = "#Y-m-d#";
26        var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma
27        var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')";
28        var $sysTimeStamp = 'NOW';
29        var $hasTransactions = false;
[34]30        var $upperCase = 'ucase';
[2]31       
32        function ADODB_ado_access()
33        {
34                $this->ADODB_ado();
35        }
36       
37        function BeginTrans() { return false;}
[34]38       
39        function CommitTrans() { return false;}
40       
41        function RollbackTrans() { return false;}
[2]42
43}
44
45 
46class  ADORecordSet_ado_access extends ADORecordSet_ado {       
47       
48        var $databaseType = "ado_access";               
49       
50        function ADORecordSet_ado_access($id,$mode=false)
51        {
52                return $this->ADORecordSet_ado($id,$mode);
53        }
54}
55?>
Note: See TracBrowser for help on using the repository browser.