adodb-informix.inc.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @version v5.20.17 31-Mar-2020
  4. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
  5. * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
  6. * Released under both BSD license and Lesser GPL library license.
  7. * Whenever there is any discrepancy between the two licenses,
  8. * the BSD license will take precedence.
  9. *
  10. * Set tabs to 4 for best viewing.
  11. *
  12. * Latest version is available at http://adodb.org/
  13. *
  14. * Informix 9 driver that supports SELECT FIRST
  15. *
  16. */
  17. // security - hide paths
  18. if (!defined('ADODB_DIR')) die();
  19. include_once(ADODB_DIR.'/drivers/adodb-informix72.inc.php');
  20. class ADODB_informix extends ADODB_informix72 {
  21. var $databaseType = "informix";
  22. var $hasTop = 'FIRST';
  23. var $ansiOuter = true;
  24. function IfNull( $field, $ifNull )
  25. {
  26. return " NVL($field, $ifNull) "; // if Informix 9.X or 10.X
  27. }
  28. }
  29. class ADORecordset_informix extends ADORecordset_informix72 {
  30. var $databaseType = "informix";
  31. function __construct($id,$mode=false)
  32. {
  33. parent::__construct($id,$mode);
  34. }
  35. }