]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/adodb/drivers/adodb-ado_access.inc.php
trailing_spaces
[SourceForge/phpwiki.git] / lib / WikiDB / adodb / drivers / adodb-ado_access.inc.php
1 <?php
2 /*
3 V4.22 15 Apr 2004  (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
4 Released under both BSD license and Lesser GPL library license.
5 Whenever there is any discrepancy between the two licenses,
6 the BSD license will take precedence. See License.txt.
7 Set tabs to 4 for best viewing.
8
9   Latest version is available at http://php.weblogs.com/
10
11         Microsoft Access ADO data driver. Requires ADO and ODBC. Works only on MS Windows.
12 */
13
14 if (!defined('_ADODB_ADO_LAYER')) {
15         include(ADODB_DIR."/drivers/adodb-ado.inc.php");
16 }
17
18 class  ADODB_ado_access extends ADODB_ado {
19         var $databaseType = 'ado_access';
20         var $hasTop = 'top';            // support mssql SELECT TOP 10 * FROM TABLE
21         var $fmtDate = "#Y-m-d#";
22         var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma
23         var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')";
24         var $sysTimeStamp = 'NOW';
25         var $hasTransactions = false;
26
27         function ADODB_ado_access()
28         {
29                 $this->ADODB_ado();
30         }
31
32         function BeginTrans() { return false;}
33
34 }
35
36
37 class  ADORecordSet_ado_access extends ADORecordSet_ado {
38
39         var $databaseType = "ado_access";
40
41         function ADORecordSet_ado_access($id,$mode=false)
42         {
43                 return $this->ADORecordSet_ado($id,$mode);
44         }
45 }
46 ?>