summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2003-07-16 12:30:49 -0700
committerigor@rurik.mysql.com <>2003-07-16 12:30:49 -0700
commit42e1296e9d83b8299fe6c8391ece71e88c7019c1 (patch)
treedb50cb809580ea76d7a68cbf9041c881a935ace7 /sql/sql_parse.cc
parent5a458484eaf7e9474fb155aa36832ebdba78c895 (diff)
downloadmariadb-git-42e1296e9d83b8299fe6c8391ece71e88c7019c1.tar.gz
mi_keycache.c:
new file Many files: Added CACHE INDEX command
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 5070466007e..946dc654cad 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1881,6 +1881,14 @@ mysql_execute_command(THD *thd)
res = mysql_restore_table(thd, tables);
break;
}
+ case SQLCOM_ASSIGN_TO_KEYCACHE:
+ {
+ if (check_db_used(thd, tables) ||
+ check_access(thd, INDEX_ACL, tables->db, &tables->grant.privilege))
+ goto error;
+ res = mysql_assign_to_keycache(thd, tables);
+ break;
+ }
case SQLCOM_PRELOAD_KEYS:
{
if (check_db_used(thd, tables) ||
@@ -4063,7 +4071,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
ulong table_options,
thr_lock_type lock_type,
List<String> *use_index,
- List<String> *ignore_index)
+ List<String> *ignore_index,
+ LEX_STRING *option)
{
register TABLE_LIST *ptr;
char *alias_str;
@@ -4124,7 +4133,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
if (ignore_index)
ptr->ignore_index=(List<String> *) thd->memdup((gptr) ignore_index,
sizeof(*ignore_index));
-
+ ptr->option= option ? option->str : 0;
/* check that used name is unique */
if (lock_type != TL_IGNORE)
{