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

Allowing NULL values in UNION's with first SELECT having only NOT NULL

columns.
This commit is contained in:
Sinisa@sinisa.nasamreza.org
2003-02-22 17:02:36 +02:00
parent f2a8927db7
commit bf3dabcce4
3 changed files with 48 additions and 1 deletions

View File

@ -146,7 +146,10 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result,
if (setup_tables(first_table) ||
setup_wild(thd, first_table, sl->item_list, 0, sl->with_wild))
goto err;
List_iterator<Item> it(sl->item_list);
Item *item;
while((item=it++))
item->maybe_null=1;
item_list= sl->item_list;
sl->with_wild= 0;
if (setup_ref_array(thd, &sl->ref_pointer_array,