diff options
author | bell@sanja.is.com.ua <> | 2003-09-03 10:59:14 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2003-09-03 10:59:14 +0300 |
commit | 054c6a93bb418cee35b9d12df96fcef80ba0aead (patch) | |
tree | 0e2af4bfe1f17247033fb94b14d27a1ad56c4d90 /sql/sql_prepare.cc | |
parent | 51374e569ddf25822dec7a084cff0265714313f5 (diff) | |
download | mariadb-git-054c6a93bb418cee35b9d12df96fcef80ba0aead.tar.gz |
inserted forgoten ASSERT (BUG#1180)
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 3 |
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); |