1 |
efrain |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Informix 9 driver.
|
|
|
4 |
*
|
|
|
5 |
* Supports SELECT FIRST.
|
|
|
6 |
*
|
|
|
7 |
* @deprecated
|
|
|
8 |
*
|
|
|
9 |
* This file is part of ADOdb, a Database Abstraction Layer library for PHP.
|
|
|
10 |
*
|
|
|
11 |
* @package ADOdb
|
|
|
12 |
* @link https://adodb.org Project's web site and documentation
|
|
|
13 |
* @link https://github.com/ADOdb/ADOdb Source code and issue tracker
|
|
|
14 |
*
|
|
|
15 |
* The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
|
|
|
16 |
* and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
|
|
|
17 |
* any later version. This means you can use it in proprietary products.
|
|
|
18 |
* See the LICENSE.md file distributed with this source code for details.
|
|
|
19 |
* @license BSD-3-Clause
|
|
|
20 |
* @license LGPL-2.1-or-later
|
|
|
21 |
*
|
|
|
22 |
* @copyright 2000-2013 John Lim
|
|
|
23 |
* @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
|
|
|
24 |
*/
|
|
|
25 |
|
|
|
26 |
// security - hide paths
|
|
|
27 |
if (!defined('ADODB_DIR')) die();
|
|
|
28 |
|
|
|
29 |
include_once(ADODB_DIR.'/drivers/adodb-informix72.inc.php');
|
|
|
30 |
|
|
|
31 |
class ADODB_informix extends ADODB_informix72 {
|
|
|
32 |
var $databaseType = "informix";
|
|
|
33 |
var $hasTop = 'FIRST';
|
|
|
34 |
var $ansiOuter = true;
|
|
|
35 |
|
|
|
36 |
function IfNull( $field, $ifNull )
|
|
|
37 |
{
|
|
|
38 |
return " NVL($field, $ifNull) "; // if Informix 9.X or 10.X
|
|
|
39 |
}
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
class ADORecordset_informix extends ADORecordset_informix72 {
|
|
|
43 |
var $databaseType = "informix";
|
|
|
44 |
}
|