mirror of
https://github.com/vrana/adminer.git
synced 2025-08-29 01:00:07 +02:00
Schema support for PostgreSQL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1521 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -755,6 +755,28 @@ if (!defined("DRIVER")) {
|
||||
return $connection->query("EXPLAIN $query");
|
||||
}
|
||||
|
||||
/** Get existing schemas
|
||||
* @return array
|
||||
*/
|
||||
function schemas() {
|
||||
return array();
|
||||
}
|
||||
|
||||
/** Get current schema
|
||||
* @return string
|
||||
*/
|
||||
function get_schema() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/** Set current schema
|
||||
* @param string
|
||||
* @return bool
|
||||
*/
|
||||
function set_schema($schema) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Get SQL command to create table
|
||||
* @param string
|
||||
* @return string
|
||||
@@ -810,7 +832,7 @@ if (!defined("DRIVER")) {
|
||||
*/
|
||||
function support($feature) {
|
||||
global $connection;
|
||||
return ($connection->server_info >= 5.1 || ($connection->server_info >= 5 && !ereg("event|partitioning")) || !ereg("view|routine|trigger"));
|
||||
return !ereg("scheme" . ($connection->server_info < 5.1 ? "|event|partitioning" . ($connection->server_info < 5 ? "|view|routine|trigger" : "") : ""), $feature);
|
||||
}
|
||||
|
||||
$driver = "sql"; ///< @var string JUSH identifier
|
||||
|
Reference in New Issue
Block a user