mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
adding mandatory aliases for derived tables as per SQL-99
doing it in sql_yacc.yy does not work this commit contains fixes for other tests there are fixes in subselect test which will have to be changed once fix_fields is fixed to work with aliased derived tables
This commit is contained in:
@@ -108,7 +108,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
|
||||
table->tmp_table=TMP_TABLE;
|
||||
if (!lex->describe)
|
||||
sl->exclude();
|
||||
t->db=(char *)"";
|
||||
t->db=(tables && tables->db) ? tables->db : (char *)"";
|
||||
t->derived=(SELECT_LEX *)0; // just in case ...
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user