adodb-ado_access.inc.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. V4.60 24 Jan 2005 (c) 2000-2005 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. Latest version is available at http://adodb.sourceforge.net
  9. Microsoft Access ADO data driver. Requires ADO and ODBC. Works only on MS Windows.
  10. */
  11. // security - hide paths
  12. if (!defined('ADODB_DIR')) die();
  13. if (!defined('_ADODB_ADO_LAYER')) {
  14. if (PHP_VERSION >= 5) include(ADODB_DIR."/drivers/adodb-ado5.inc.php");
  15. else include(ADODB_DIR."/drivers/adodb-ado.inc.php");
  16. }
  17. class ADODB_ado_access extends ADODB_ado {
  18. var $databaseType = 'ado_access';
  19. var $hasTop = 'top'; // support mssql SELECT TOP 10 * FROM TABLE
  20. var $fmtDate = "#Y-m-d#";
  21. var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma
  22. var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')";
  23. var $sysTimeStamp = 'NOW';
  24. var $hasTransactions = false;
  25. function ADODB_ado_access()
  26. {
  27. $this->ADODB_ado();
  28. }
  29. function BeginTrans() { return false;}
  30. function CommitTrans() { return false;}
  31. function RollbackTrans() { return false;}
  32. }
  33. class ADORecordSet_ado_access extends ADORecordSet_ado {
  34. var $databaseType = "ado_access";
  35. function ADORecordSet_ado_access($id,$mode=false)
  36. {
  37. return $this->ADORecordSet_ado($id,$mode);
  38. }
  39. }
  40. ?>