]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Add floor and ceil functions
authorJakub Vrana <jakub@vrana.cz>
Thu, 1 Feb 2018 13:32:01 +0000 (14:32 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 1 Feb 2018 13:32:01 +0000 (14:32 +0100)
adminer/drivers/mysql.inc.php
changes.txt

index 890a6aaa3d1d8951b512624d5813ad3aa67e1c68..136e885101cd3e515e6692de3da3e8829c745f56 100644 (file)
@@ -1061,7 +1061,7 @@ if (!defined("DRIVER")) {
        }
        $unsigned = array("unsigned", "zerofill", "unsigned zerofill"); ///< @var array number variants
        $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "REGEXP", "IN", "IS NULL", "NOT LIKE", "NOT REGEXP", "NOT IN", "IS NOT NULL", "SQL"); ///< @var array operators used in select
-       $functions = array("char_length", "date", "from_unixtime", "lower", "round", "sec_to_time", "time_to_sec", "upper"); ///< @var array functions used in select
+       $functions = array("char_length", "date", "from_unixtime", "lower", "round", "floor", "ceil", "sec_to_time", "time_to_sec", "upper"); ///< @var array functions used in select
        $grouping = array("avg", "count", "count distinct", "group_concat", "max", "min", "sum"); ///< @var array grouping functions used in select
        $edit_functions = array( ///< @var array of array("$type|$type2" => "$function/$function2") functions used in editing, [0] - edit and insert, [1] - edit only
                array(
index 44ab86a614346369540ed4a678194b0a140fc3ab..78645a074eb2b70c29c509cc394030233efa8b0b 100644 (file)
@@ -6,6 +6,7 @@ Stop redirecting links via adminer.org
 Support X-Forwarded-Prefix
 Display options for timestamp columns when creating a new table
 MySQL, PostgreSQL: Display warnings
+MySQL: Add floor and ceil functions
 MariaDB: Support JSON since MariaDB 10.2
 PostgreSQL: Support functions
 PostgreSQL: Allow editing views with uppercase letters (bug #467)