mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
requre BASE TABLE for HANDLER (BUG#5277)
mysql-test/r/view.result: HANDLER with VIEW mysql-test/t/view.test: HANDLER with VIEW sql/sql_handler.cc: requre BASE TABLE for HANDLER
This commit is contained in:
@ -51,7 +51,11 @@ int mysql_ha_open(THD *thd, TABLE_LIST *tables)
|
||||
{
|
||||
HANDLER_TABLES_HACK(thd);
|
||||
uint counter;
|
||||
|
||||
/* for now HANDLER can be used only for real TABLES */
|
||||
tables->required_type= FRMTYPE_TABLE;
|
||||
int err=open_tables(thd, tables, &counter);
|
||||
|
||||
HANDLER_TABLES_HACK(thd);
|
||||
if (err)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user