1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* PostgreSQL 8.1 support
|
5 |
|
|
*
|
6 |
|
|
* $Id: Postgres81.php,v 1.3 2005/09/07 08:09:21 chriskl Exp $
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
include_once('./classes/database/Postgres80.php');
|
10 |
|
|
|
11 |
|
|
class Postgres81 extends Postgres80 {
|
12 |
|
|
|
13 |
|
|
var $major_version = 8.1;
|
14 |
|
|
|
15 |
|
|
// Map of database encoding names to HTTP encoding names. If a
|
16 |
|
|
// database encoding does not appear in this list, then its HTTP
|
17 |
|
|
// encoding name is the same as its database encoding name.
|
18 |
|
|
var $codemap = array(
|
19 |
|
|
'BIG5' => 'BIG5',
|
20 |
|
|
'EUC_CN' => 'GB2312',
|
21 |
|
|
'EUC_JP' => 'EUC-JP',
|
22 |
|
|
'EUC_KR' => 'EUC-KR',
|
23 |
|
|
'EUC_TW' => 'EUC-TW',
|
24 |
|
|
'GB18030' => 'GB18030',
|
25 |
|
|
'GBK' => 'GB2312',
|
26 |
|
|
'ISO_8859_5' => 'ISO-8859-5',
|
27 |
|
|
'ISO_8859_6' => 'ISO-8859-6',
|
28 |
|
|
'ISO_8859_7' => 'ISO-8859-7',
|
29 |
|
|
'ISO_8859_8' => 'ISO-8859-8',
|
30 |
|
|
'JOHAB' => 'CP1361',
|
31 |
|
|
'KOI8' => 'KOI8-R',
|
32 |
|
|
'LATIN1' => 'ISO-8859-1',
|
33 |
|
|
'LATIN2' => 'ISO-8859-2',
|
34 |
|
|
'LATIN3' => 'ISO-8859-3',
|
35 |
|
|
'LATIN4' => 'ISO-8859-4',
|
36 |
|
|
'LATIN5' => 'ISO-8859-9',
|
37 |
|
|
'LATIN6' => 'ISO-8859-10',
|
38 |
|
|
'LATIN7' => 'ISO-8859-13',
|
39 |
|
|
'LATIN8' => 'ISO-8859-14',
|
40 |
|
|
'LATIN9' => 'ISO-8859-15',
|
41 |
|
|
'LATIN10' => 'ISO-8859-16',
|
42 |
|
|
'SJIS' => 'SHIFT_JIS',
|
43 |
|
|
'SQL_ASCII' => 'US-ASCII',
|
44 |
|
|
'UHC' => 'WIN949',
|
45 |
|
|
'UTF8' => 'UTF-8',
|
46 |
|
|
'WIN866' => 'CP866',
|
47 |
|
|
'WIN874' => 'CP874',
|
48 |
|
|
'WIN1250' => 'CP1250',
|
49 |
|
|
'WIN1251' => 'CP1251',
|
50 |
|
|
'WIN1252' => 'CP1252',
|
51 |
|
|
'WIN1256' => 'CP1256',
|
52 |
|
|
'WIN1258' => 'CP1258'
|
53 |
|
|
);
|
54 |
|
|
|
55 |
|
|
// Last oid assigned to a system object
|
56 |
|
|
var $_lastSystemOID = 17231;
|
57 |
|
|
|
58 |
|
|
/**
|
59 |
|
|
* Constructor
|
60 |
|
|
* @param $conn The database connection
|
61 |
|
|
*/
|
62 |
|
|
function Postgres81($conn) {
|
63 |
|
|
$this->Postgres80($conn);
|
64 |
|
|
}
|
65 |
|
|
|
66 |
|
|
// Help functions
|
67 |
|
|
|
68 |
|
|
function getHelpPages() {
|
69 |
|
|
include_once('./help/PostgresDoc81.php');
|
70 |
|
|
return $this->help_page;
|
71 |
|
|
}
|
72 |
|
|
|
73 |
|
|
}
|
74 |
|
|
|
75 |
|
|
?>
|