diff options
author | unknown <bell@sanja.is.com.ua> | 2004-05-07 00:08:21 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-05-07 00:08:21 +0300 |
commit | 56568288f0ff25e5b3cd567d02b94e19d0c4898a (patch) | |
tree | 04110f432086920c16c453910208062de1ad0fa8 /sql/sql_lex.h | |
parent | 151495baf78b0a5e282a0e77fdba1a7a2a8a3085 (diff) | |
download | mariadb-git-56568288f0ff25e5b3cd567d02b94e19d0c4898a.tar.gz |
fake_select_lex should be prepared during PS preparation to work correctly
item_list for fake_select will be created only once
(problem reported by valgrind in test_union2 fixed)
sql/sql_lex.h:
new function to keep code in one place
sql/sql_union.cc:
fake_select_lex should be prepared during PS preparation to work correctly
item_list for fake_select will be created only once
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 78bf3bdd5f5..23d88b141b8 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -366,7 +366,8 @@ public: bool check_updateable(char *db, char *table); void print(String *str); - + + ulong init_prepare_fake_select_lex(THD *thd); friend void mysql_init_query(THD *thd); friend int subselect_union_engine::exec(); |