Skip to content

Commit

Permalink
missing function getDefaultSchema() since Syncing fork + install test
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrol29 committed Nov 3, 2020
1 parent 9fb6ed3 commit b6fc438
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions libraries/joomla/database/driver/postgresql.php
Expand Up @@ -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();

}
}

0 comments on commit b6fc438

Please sign in to comment.