1
0
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:
unknown
2004-09-07 10:42:23 +03:00
parent fcbd2485e3
commit 6e0b468f18
3 changed files with 20 additions and 0 deletions

View File

@ -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;