diff options
author | unknown <bell@sanja.is.com.ua> | 2005-01-04 18:04:16 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-01-04 18:04:16 +0200 |
commit | 34f313eeafcf430899b1ae6e148470440b5897f9 (patch) | |
tree | 614f6803a8c639e656f89a70e02feda14d66d919 /sql/sql_insert.cc | |
parent | 592ffbcd68337c40dd75f2e052ee0479a120f8bd (diff) | |
download | mariadb-git-34f313eeafcf430899b1ae6e148470440b5897f9.tar.gz |
fixed bugs in view code with prepared statemnts
sql/sql_acl.cc:
block checking view underlying tables
sql/sql_base.cc:
item registration fixed
fixed non registred item resolving
fixed result of outo-merge
fixed creation reference if alias used
sql/sql_insert.cc:
layout fixed
removed unused variable
sql/sql_parse.cc:
block checking view underlying tables
sql/sql_prepare.cc:
make preparation check same as usual check
sql/sql_update.cc:
made want_privilege assignment simplier
block checking view underlying tables
sql/sql_view.cc:
belong_to_view assignmebt moved after privileges check
sql/table.cc:
check option fix field added
arena management added
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 45b62ef8d83..dc80081bbc8 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -138,7 +138,7 @@ check_insert_fields(THD *thd, TABLE_LIST *table_list, List<Item> &fields, } // For the values we need select_priv #ifndef NO_EMBEDDED_ACCESS_CHECKS - table->grant.want_privilege=(SELECT_ACL & ~table->grant.privilege); + table->grant.want_privilege= (SELECT_ACL & ~table->grant.privilege); #endif if (check_key_in_view(thd, table_list) || @@ -1720,8 +1720,6 @@ bool delayed_insert::handle_inserts(void) bool mysql_insert_select_prepare(THD *thd) { LEX *lex= thd->lex; - TABLE_LIST *first_select_table= - (TABLE_LIST*) lex->select_lex.table_list.first; TABLE_LIST *first_select_leaf_table; int res; DBUG_ENTER("mysql_insert_select_prepare"); |