diff options
author | unknown <bell@sanja.is.com.ua> | 2004-08-24 15:37:51 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-08-24 15:37:51 +0300 |
commit | 46a0c8a7df4ef7cc53bbade3ffcbff4b4a046fd8 (patch) | |
tree | effaa3c4380adbb6925dbc91f7ad732793a34fe1 /sql/table.h | |
parent | 2f16033f2f427380b544aff3628f5eb164ff229c (diff) | |
download | mariadb-git-46a0c8a7df4ef7cc53bbade3ffcbff4b4a046fd8.tar.gz |
sending right error message where VIEW is not expected (BUG#4606)
mysql-test/r/view.result:
using VIEW where table is required
mysql-test/t/view.test:
using VIEW where table is required
sql/sql_base.cc:
sending right error message where VIEW is not expected
sql/sql_view.h:
frm_type_enum moved to table.h becuae used in TABLE_LIST
sql/table.h:
frm_type_enum moved to table.h becuae used in TABLE_LIST
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 75d54d9d069..dd41ab79b7b 100644 --- a/sql/table.h +++ b/sql/table.h @@ -47,6 +47,13 @@ typedef struct st_grant_info enum tmp_table_type {NO_TMP_TABLE=0, TMP_TABLE=1, TRANSACTIONAL_TMP_TABLE=2}; +enum frm_type_enum +{ + FRMTYPE_ERROR= 0, + FRMTYPE_TABLE, + FRMTYPE_VIEW +}; + typedef struct st_filesort_info { IO_CACHE *io_cache; /* If sorted through filebyte */ @@ -241,6 +248,8 @@ typedef struct st_table_list bool setup_is_done; /* setup_tables() is done */ /* do view contain auto_increment field */ bool contain_auto_increment; + /* FRMTYPE_ERROR if any type is acceptable */ + enum frm_type_enum required_type; char timestamp_buffer[20]; /* buffer for timestamp (19+1) */ void calc_md5(char *buffer); |