|
| |
1 |
|
<?php |
|
| |
2 |
|
|
|
| |
3 |
|
|
|
| |
4 |
|
|
|
| |
5 |
|
|
|
| |
6 |
|
|
|
| |
7 |
|
|
|
| |
8 |
|
|
|
| |
9 |
|
|
|
| |
10 |
|
|
|
| |
11 |
|
|
|
| |
12 |
|
|
|
| |
13 |
|
include_once(ADODB_DIR."/adodb-postgres.inc.php"); |
|
| |
14 |
|
|
|
| |
15 |
|
class ADODB_postgres7 extends ADODB_postgres { |
|
| |
16 |
|
var $databaseType = 'postgres7'; |
|
| |
17 |
|
var $hasLimit = true; |
|
| |
18 |
|
|
|
| |
19 |
|
function ADODB_postgres7() |
|
| |
20 |
|
{ |
|
| |
21 |
|
} |
|
| |
22 |
|
|
|
| |
23 |
|
function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$arg3=false,$secs2cache=0) |
|
| |
24 |
|
{ |
|
| |
25 |
|
$offsetStr = ($offset >= 0) ? " OFFSET $offset" : ''; |
|
| |
26 |
|
return $secs2cache ? |
|
| |
27 |
|
$this->CacheExecute($secs2cache,$sql." LIMIT $nrows$offsetStr",$inputarr,$arg3) |
|
| |
28 |
|
: |
|
| |
29 |
|
$this->Execute($sql." LIMIT $nrows$offsetStr",$inputarr,$arg3); |
|
| |
30 |
|
} |
|
| |
31 |
|
} |
|
| |
32 |
|
|
|
| |
33 |
|
|
|
| |
34 |
|
|
|
| |
35 |
|
|
|
| |
36 |
|
|
|
| |
37 |
|
class ADORecordSet_postgres7 extends ADORecordSet_postgres{ |
|
| |
38 |
|
|
|
| |
39 |
|
var $databaseType = "postgres7"; |
|
| |
40 |
|
|
|
| |
41 |
|
function ADORecordSet_postgres7($queryID) { |
|
| |
42 |
|
$res=$this->ADORecordSet_postgres($queryID); |
|
| |
43 |
|
return $res; |
|
| |
44 |
|
} |
|
| |
45 |
|
|
|
| |
46 |
|
} |
|
| |
47 |
|
?> |