1
0
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:
jakubvrana
2010-05-05 16:27:39 +00:00
parent 7ee5992648
commit da8a1b66b9
6 changed files with 18 additions and 21 deletions

View File

@@ -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