summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-08-27 20:00:18 +0300
committerunknown <monty@narttu.mysql.fi>2003-08-27 20:00:18 +0300
commitc637296ceaf315d66011d0eeeae4765294fff060 (patch)
tree9e95c1a8621bfb7a8f2c88c42378e6f07a07ebe4 /sql/item_cmpfunc.cc
parentb43a551e83c20dc647a56036ad76811bb09a4945 (diff)
downloadmariadb-git-c637296ceaf315d66011d0eeeae4765294fff060.tar.gz
Fixed unlikely stack bug when having a BIG expression of type 1+1-1+1-1... in certain combinations. Bug #871
sql-bench/limits/mysql.cfg: Updated limits sql/item_cmpfunc.cc: Test for stack checking sql/item_func.cc: Test for stack checking
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 b940064923f..63f3a8985c5 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1190,7 +1190,7 @@ Item_cond::fix_fields(THD *thd,TABLE_LIST *tables)
and_tables_cache= ~(table_map) 0;
if (thd && check_stack_overrun(thd,buff))
- return 0; // Fatal error flag is set!
+ return 1; // Fatal error flag is set!
while ((item=li++))
{
table_map tmp_table_map;