// Detect version and choose appropriate database driver
switch (substr($version,0,3)) {
- case '9.4': return 'Postgres'; break;
+ case '9.5': return 'Postgres'; break;
+ case '9.4': return 'Postgres94'; break;
case '9.3': return 'Postgres93'; break;
case '9.2': return 'Postgres92'; break;
case '9.1': return 'Postgres91'; break;
class Postgres extends ADODB_base {
- var $major_version = 9.4;
+ var $major_version = 9.5;
// Max object name length
var $_maxNameLen = 63;
// Store the current schema
}
function getHelpPages() {
- include_once('./help/PostgresDoc94.php');
+ include_once('./help/PostgresDoc95.php');
return $this->help_page;
}
*
*/
-include_once('./classes/database/Postgres.php');
+include_once('./classes/database/Postgres94.php');
-class Postgres93 extends Postgres {
+class Postgres93 extends Postgres94 {
var $major_version = 9.3;
--- /dev/null
+<?php
+
+/**
+ * PostgreSQL 9.4 support
+ *
+ */
+
+include_once('./classes/database/Postgres.php');
+
+class Postgres94 extends Postgres {
+
+ var $major_version = 9.4;
+
+ /**
+ * Constructor
+ * @param $conn The database connection
+ */
+ function Postgres94($conn) {
+ $this->Postgres($conn);
+ }
+
+ // Help functions
+
+ function getHelpPages() {
+ include_once('./help/PostgresDoc94.php');
+ return $this->help_page;
+ }
+
+}
+?>
--- /dev/null
+<?php
+
+/**
+ * Help links for PostgreSQL 9.5 documentation
+ *
+ * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $
+ */
+
+include('./help/PostgresDoc94.php');
+
+$this->help_base = sprintf($GLOBALS['conf']['help_base'], '9.5');
+
+?>