[2] | 1 | <?php |
---|
| 2 | /* |
---|
[8222] | 3 | V5.18 3 Sep 2012 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. |
---|
[2] | 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://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 |
---|
| 15 | if (!defined('ADODB_DIR')) die(); |
---|
| 16 | |
---|
| 17 | if (!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 | |
---|
| 22 | class 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'; |
---|
[34] | 29 | var $upperCase = 'ucase'; |
---|
[2] | 30 | |
---|
| 31 | function ADODB_ado_access() |
---|
| 32 | { |
---|
| 33 | $this->ADODB_ado(); |
---|
| 34 | } |
---|
| 35 | |
---|
[8222] | 36 | /*function BeginTrans() { return false;} |
---|
[34] | 37 | |
---|
| 38 | function CommitTrans() { return false;} |
---|
| 39 | |
---|
[8222] | 40 | function RollbackTrans() { return false;}*/ |
---|
[2] | 41 | |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | class ADORecordSet_ado_access extends ADORecordSet_ado { |
---|
| 46 | |
---|
| 47 | var $databaseType = "ado_access"; |
---|
| 48 | |
---|
| 49 | function ADORecordSet_ado_access($id,$mode=false) |
---|
| 50 | { |
---|
| 51 | return $this->ADORecordSet_ado($id,$mode); |
---|
| 52 | } |
---|
| 53 | } |
---|
| 54 | ?> |
---|