1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

columns.
This commit is contained in:
unknown
2003-02-22 17:02:36 +02:00
parent 7cef5e9b97
commit 72065f34e6
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,