diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2003-12-13 17:20:35 +0200 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2003-12-13 17:20:35 +0200 |
commit | 85a4e83e9ae38b19f1e3eda9162203ac45b32ee5 (patch) | |
tree | a8e36d0cbbc258765abf20de6ce0f9b1bdf5e6df /sql/item_cmpfunc.cc | |
parent | 18ebd6344003dda25b70fc3921e34867179d3c15 (diff) | |
download | mariadb-git-85a4e83e9ae38b19f1e3eda9162203ac45b32ee5.tar.gz |
Already approved bug fix for #1561.
Bug happens in INTERVAL function when number of compared arguments
is 8 or more.
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index db80428290a..2252c1a0e40 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -603,7 +603,7 @@ longlong Item_func_interval::val_int() if (intervals) { // Use binary search to find interval uint start,end; - start= 1; + start= 0; end= row->cols()-2; while (start != end) { |