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

fixed subqueries name resolution with INSERT/REPLACE (found during bug 446 investigation)

This commit is contained in:
bell@sanja.is.com.ua
2003-05-21 23:35:51 +03:00
parent 8d52377a5c
commit 32262a0fd5
6 changed files with 45 additions and 9 deletions

View File

@ -352,6 +352,14 @@ public:
bool braces; /* SELECT ... UNION (SELECT ... ) <- this braces */
/* TRUE when having fix field called in processing of this SELECT */
bool having_fix_field;
/*
TRUE for primary st_select_lex structure of simple INSERT/REPLACE
(used for name resolution, see Item_fiels & Item_ref fix_fields,
FALSE for INSERT/REPLACE ... SELECT, because it's
st_select_lex->table_list will be preprocessed (first table removed)
before passing to handle_select)
*/
bool insert_select;
void init_query();
void init_select();