diff --git a/libraries/joomla/database/driver/postgresql.php b/libraries/joomla/database/driver/postgresql.php index 457b3c3015b17..b235e8e564723 100644 --- a/libraries/joomla/database/driver/postgresql.php +++ b/libraries/joomla/database/driver/postgresql.php @@ -1624,4 +1624,21 @@ public function quoteBinary($data) { return "decode('" . bin2hex($data) . "', 'hex')"; } + + /** + * Internal function to get the name of the default schema for the current PostgreSQL connexion. + * That is the schema where tables are created by Joomla. + * + * @return string + * + * @since __DEPLOY_VERSION__ + */ + private function getDefaultSchema() + { + + // Supported since PostgreSQL 7.3 + $this->setQuery('SELECT (current_schemas(false))[1]'); + return $this->loadResult(); + + } }