1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
unknown
2004-05-07 00:08:21 +03:00
parent 151495baf7
commit 56568288f0
2 changed files with 62 additions and 19 deletions

View File

@ -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();