| Revision 18390,
982 bytes
checked in by nanasess, 17 years ago
(diff) |
|
ADOdb ライブラリと, SC_DbConn クラスのパッチを追加(#564)
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Id Revision Date
-
Property svn:mime-type set to
text/x-httpd-php
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * @version v4.992 10 Nov 2009 (c) 2000-2009 John Lim (jlim#natsoft.com). 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. |
|---|
| 7 | * |
|---|
| 8 | * Set tabs to 4 for best viewing. |
|---|
| 9 | * |
|---|
| 10 | * Latest version is available at http://php.weblogs.com |
|---|
| 11 | * |
|---|
| 12 | * Informix 9 driver that supports SELECT FIRST |
|---|
| 13 | * |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | // security - hide paths |
|---|
| 17 | if (!defined('ADODB_DIR')) die(); |
|---|
| 18 | |
|---|
| 19 | include_once(ADODB_DIR.'/drivers/adodb-informix72.inc.php'); |
|---|
| 20 | |
|---|
| 21 | class ADODB_informix extends ADODB_informix72 { |
|---|
| 22 | var $databaseType = "informix"; |
|---|
| 23 | var $hasTop = 'FIRST'; |
|---|
| 24 | var $ansiOuter = true; |
|---|
| 25 | |
|---|
| 26 | function IfNull( $field, $ifNull ) |
|---|
| 27 | { |
|---|
| 28 | return " NVL($field, $ifNull) "; // if Informix 9.X or 10.X |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | class ADORecordset_informix extends ADORecordset_informix72 { |
|---|
| 33 | var $databaseType = "informix"; |
|---|
| 34 | |
|---|
| 35 | function ADORecordset_informix($id,$mode=false) |
|---|
| 36 | { |
|---|
| 37 | $this->ADORecordset_informix72($id,$mode); |
|---|
| 38 | } |
|---|
| 39 | } |
|---|
| 40 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.