mirror of
https://github.com/vrana/adminer.git
synced 2025-08-29 09:10:09 +02:00
Respect move and drop column support
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1518 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -790,14 +790,7 @@ if (!defined("DRIVER")) {
|
||||
*/
|
||||
function support($feature) {
|
||||
global $connection;
|
||||
$features = array(
|
||||
"view" => ($connection->server_info >= 5),
|
||||
"routine" => ($connection->server_info >= 5),
|
||||
"trigger" => ($connection->server_info >= 5),
|
||||
"event" => ($connection->server_info >= 5.1),
|
||||
"partitioning" => ($connection->server_info >= 5.1),
|
||||
);
|
||||
return (isset($features[$feature]) ? $features[$feature] : true);
|
||||
return ($connection->server_info >= 5.1 || ($connection->server_info >= 5 && !ereg("event|partitioning")) || !ereg("view|routine|trigger"));
|
||||
}
|
||||
|
||||
$driver = "sql"; ///< @var string JUSH identifier
|
||||
|
Reference in New Issue
Block a user