summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-09-03 10:59:14 +0300
committerbell@sanja.is.com.ua <>2003-09-03 10:59:14 +0300
commit054c6a93bb418cee35b9d12df96fcef80ba0aead (patch)
tree0e2af4bfe1f17247033fb94b14d27a1ad56c4d90 /sql/sql_prepare.cc
parent51374e569ddf25822dec7a084cff0265714313f5 (diff)
downloadmariadb-git-054c6a93bb418cee35b9d12df96fcef80ba0aead.tar.gz
inserted forgoten ASSERT (BUG#1180)
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 3bebdef7738..4abbbcaff1f 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -937,8 +937,7 @@ void mysql_stmt_execute(THD *thd, char *packet)
// copy WHERE clause pointers to avoid damaging they by optimisation
if (sl->prep_where)
sl->where= sl->prep_where->copy_andor_structure(thd);
- // force allocation new JOIN for this mem_root (for safety)
- sl->join= 0;
+ DBUG_ASSERT(sl->join == 0);
}
init_stmt_execute(stmt);