Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAndrejs Verza <andrejs.verza@zabbix.com>2021-05-08 18:07:22 +0300
committerAndrejs Verza <andrejs.verza@zabbix.com>2021-05-08 18:07:22 +0300
commit08a63f40b634db09b6624b37b3c448fe9e85f91b (patch)
treeb3e738a11f2cb69085a72fd5ba6f2f3c0ffbb135 /ui
parent1bc467cabcbc0b57e9b8a185d23b08e07a760323 (diff)
..F....... [ZBXNEXT-6544,ZBXNEXT-6561] fixed output type definition for math functions
Diffstat (limited to 'ui')
-rw-r--r--ui/include/triggers.inc.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/include/triggers.inc.php b/ui/include/triggers.inc.php
index 05c2ebff382..6e43ca2391a 100644
--- a/ui/include/triggers.inc.php
+++ b/ui/include/triggers.inc.php
@@ -1828,7 +1828,6 @@ function get_item_function_info(string $expr) {
'fuzzytime' => $rules['numeric_as_0or1'],
'kurtosis' => $rules['numeric_as_float'],
'last' => $rules['numeric'] + $rules['string'],
- 'length' => $rules['string_as_uint'],
'logeventid' => $rules['log_as_0or1'],
'logseverity' => $rules['log_as_uint'],
'logsource' => $rules['log_as_0or1'],
@@ -1860,7 +1859,7 @@ function get_item_function_info(string $expr) {
'atan' => ['any' => $rule_float],
'atan2' => ['any' => $rule_float],
'avg' => ['any' => $rule_float],
- 'between' => ['any' => $rule_float],
+ 'between' => ['any' => $rule_0or1],
'bitand' => ['any' => $rule_int],
'bitlength' => ['any' => $rule_int],
'bitlshift' => ['any' => $rule_int],
@@ -1889,7 +1888,7 @@ function get_item_function_info(string $expr) {
'e' => ['any' => $rule_float],
'exp' => ['any' => $rule_float],
'expm1' => ['any' => $rule_float],
- 'floor' => ['any' => $rule_float],
+ 'floor' => ['any' => $rule_int],
'in' => ['any' => $rule_0or1],
'insert' => ['any' => $rule_str],
'left' => ['any' => $rule_str],