1
0
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:
Sinisa@sinisa.nasamreza.org
2002-11-28 19:19:21 +02:00
parent c6e6fa8f55
commit 8a53d1ca6a
34 changed files with 5562 additions and 53 deletions

View File

@@ -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 ...
}
}