summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-07-17 02:13:02 +0300
committerbell@sanja.is.com.ua <>2004-07-17 02:13:02 +0300
commit5eadafe56960a5df27007ae382c1c5445cc1ed9a (patch)
treed2650859e3d8fe1fca3ba854b9ed268bd41c5259
parentf973ac9942265954a9dca65bf10d8f4ae7c4d1c4 (diff)
parentb6a23bab45c8bdd8e2800b89293cf9ee791fa2df (diff)
downloadmariadb-git-5eadafe56960a5df27007ae382c1c5445cc1ed9a.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-subs-4.1
-rw-r--r--sql/item_subselect.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index ccc72cea608..8c4dae92ddc 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -128,7 +128,12 @@ bool Item_subselect::fix_fields(THD *thd_param, TABLE_LIST *tables, Item **ref)
stmt= thd->current_statement;
char const *save_where= thd->where;
- int res= engine->prepare();
+ int res;
+
+ if (check_stack_overrun(thd, (gptr)&res))
+ return 1;
+
+ res= engine->prepare();
// all transformetion is done (used by prepared statements)
changed= 1;