From 051ca83e9b7afa56b6cf6d4b227ba1fda1139641 Mon Sep 17 00:00:00 2001 From: chriskl Date: Sun, 9 Nov 2003 08:29:33 +0000 Subject: [PATCH] PostgreSQL 7.5 CVS support --- HISTORY | 1 + classes/Misc.php | 6 ++++-- classes/database/Postgres75.php | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100755 classes/database/Postgres75.php diff --git a/HISTORY b/HISTORY index cd28ddb1..490dfe19 100644 --- a/HISTORY +++ b/HISTORY @@ -5,6 +5,7 @@ Version 3.2-dev --------------- Features +* PostgreSQL 7.5 CVS support * Option to dump table structure, data or structure and data * Results of table browse, table select, view browsing and report browsing can now ALL be sorted by column diff --git a/classes/Misc.php b/classes/Misc.php index bcdcc837..a6c105cf 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -2,7 +2,7 @@ /** * Class to hold various commonly used functions * - * $Id: Misc.php,v 1.46 2003/10/17 07:33:49 chriskl Exp $ + * $Id: Misc.php,v 1.47 2003/11/09 08:29:33 chriskl Exp $ */ class Misc { @@ -188,7 +188,9 @@ $version = $params[1]; // eg. 7.3.2 $description = "PostgreSQL {$params[1]}"; - if (strpos($version, '7.4') === 0) + if (strpos($version, '7.5') === 0) + return 'Postgres75'; + elseif (strpos($version, '7.4') === 0) return 'Postgres74'; elseif (strpos($version, '7.3') === 0) return 'Postgres73'; diff --git a/classes/database/Postgres75.php b/classes/database/Postgres75.php new file mode 100755 index 00000000..d423a430 --- /dev/null +++ b/classes/database/Postgres75.php @@ -0,0 +1,28 @@ +Postgres74($host, $port, $database, $user, $password); + } + +} -- 2.39.5