summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-09-03 15:18:40 +0300
committerbell@sanja.is.com.ua <>2004-09-03 15:18:40 +0300
commitbd2c119176e7dded04b2251d20a31d1e63512744 (patch)
tree887af5e66cac0f28f08971bc57b9d874c53dc747 /sql/table.h
parente04f4fb46cc59804da2bd3241c89cc1129a4c3a5 (diff)
downloadmariadb-git-bd2c119176e7dded04b2251d20a31d1e63512744.tar.gz
CHECK OPTIONs added (WL#1983)
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index dd41ab79b7b..89d1b717185 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -182,6 +182,10 @@ struct st_table {
#define VIEW_ALGORITHM_TMEPTABLE 1
#define VIEW_ALGORITHM_MERGE 2
+#define VIEW_CHECK_NONE 0
+#define VIEW_CHECK_LOCAL 1
+#define VIEW_CHECK_CASCADED 2
+
struct st_lex;
typedef struct st_table_list
@@ -215,6 +219,7 @@ typedef struct st_table_list
/* most upper view this table belongs to */
st_table_list *belong_to_view;
Item *where; /* VIEW WHERE clause condition */
+ Item *check_option; /* WITH CHECK OPTION condition */
LEX_STRING query; /* text of (CRETE/SELECT) statement */
LEX_STRING md5; /* md5 of query tesxt */
LEX_STRING source; /* source of CREATE VIEW */
@@ -225,6 +230,7 @@ typedef struct st_table_list
ulonglong updatable_view; /* VIEW can be updated */
ulonglong revision; /* revision control number */
ulonglong algorithm; /* 0 any, 1 tmp tables , 2 merging */
+ ulonglong with_check; /* WITH CHECK OPTION */
uint effective_algorithm; /* which algorithm was really used */
GRANT_INFO grant;
thr_lock_type lock_type;
@@ -236,6 +242,7 @@ typedef struct st_table_list
bool updating; /* for replicate-do/ignore table */
bool force_index; /* prefer index over table scan */
bool ignore_leaves; /* preload only non-leaf nodes */
+ bool no_where_clause; /* do not attach WHERE to SELECT */
table_map dep_tables; /* tables the table depends on */
table_map on_expr_dep_tables; /* tables on expression depends on */
struct st_nested_join *nested_join; /* if the element is a nested join */