summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-12-13 17:20:35 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2003-12-13 17:20:35 +0200
commit85a4e83e9ae38b19f1e3eda9162203ac45b32ee5 (patch)
treea8e36d0cbbc258765abf20de6ce0f9b1bdf5e6df /sql/item_cmpfunc.cc
parent18ebd6344003dda25b70fc3921e34867179d3c15 (diff)
downloadmariadb-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.cc2
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)
{