diff options
author | bell@sanja.is.com.ua <> | 2005-01-04 18:04:16 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-01-04 18:04:16 +0200 |
commit | a8a5f3590cb1badf544f7454d783a71a1bdf6dbc (patch) | |
tree | 614f6803a8c639e656f89a70e02feda14d66d919 /sql/sql_insert.cc | |
parent | a99921fb3949fec0a2c7eaa2f96ad9ab071f53f3 (diff) | |
download | mariadb-git-a8a5f3590cb1badf544f7454d783a71a1bdf6dbc.tar.gz |
fixed bugs in view code with prepared statemnts
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"); |