summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-05-10 16:31:13 -0700
committerunknown <igor@rurik.mysql.com>2005-05-10 16:31:13 -0700
commite02416c53cc97cb16b8d6a3c0df76568a061538d (patch)
treea60dad46c054f43e7617ba684f1346dbcb0ba1b7 /sql/table.h
parent179451fc2a79763514cf11c3a90b09153ba72cb3 (diff)
downloadmariadb-git-e02416c53cc97cb16b8d6a3c0df76568a061538d.tar.gz
Many files:
Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. view.test: Added test case for bug #8528. view.result: Added test case for bug #8528. Fixed other test cases. mysql-test/r/view.result: Added test case for bug #8528. Fixed other test cases. mysql-test/t/view.test: Added test case for bug #8528. sql/sql_base.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_delete.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_insert.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_parse.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_prepare.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_select.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_update.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/sql_view.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/table.cc: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views. sql/table.h: Fixed bug #8528. Representation for single-table views was made similar to representation for multi-table views.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h
index d00ac41140e..781b5e21f9b 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -432,6 +432,10 @@ typedef struct st_table_list
bool skip_temporary; /* this table shouldn't be temporary */
/* TRUE if this merged view contain auto_increment field */
bool contain_auto_increment;
+#if 0
+#else
+ bool multitable_view; /* TRUE iff this is multitable view */
+#endif
/* FRMTYPE_ERROR if any type is acceptable */
enum frm_type_enum required_type;
char timestamp_buffer[20]; /* buffer for timestamp (19+1) */
@@ -450,7 +454,8 @@ typedef struct st_table_list
void print(THD *thd, String *str);
void save_and_clear_want_privilege();
void restore_want_privilege();
- bool check_single_table(st_table_list **table, table_map map);
+ bool check_single_table(st_table_list **table, table_map map,
+ st_table_list *view);
bool set_insert_values(MEM_ROOT *mem_root);
st_table_list *find_underlying_table(TABLE *table);
} TABLE_LIST;