diff options
author | unknown <kroki/tomash@moonlight.intranet> | 2006-07-13 17:21:44 +0400 |
---|---|---|
committer | unknown <kroki/tomash@moonlight.intranet> | 2006-07-13 17:21:44 +0400 |
commit | 51dddb3ad18b78d2f5f3ca25623bfb5dc60c5341 (patch) | |
tree | c5fda6d5e82335ce71de89fc8afa361c9c4f4323 /sql/sql_trigger.cc | |
parent | f60d9a3eeed1c7c6a3249ea3e629ce7b104a420b (diff) | |
parent | 06bf59ad3381522f4f5ba272a478271c741f0049 (diff) | |
download | mariadb-git-51dddb3ad18b78d2f5f3ca25623bfb5dc60c5341.tar.gz |
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug18630
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_trigger.cc:
Auto merged
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r-- | sql/sql_trigger.cc | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc index 66a16f16d8c..f46c7414fa4 100644 --- a/sql/sql_trigger.cc +++ b/sql/sql_trigger.cc @@ -1503,40 +1503,11 @@ bool Table_triggers_list::process_triggers(THD *thd, trg_event_type event, old_field= table->field; } -#ifndef NO_EMBEDDED_ACCESS_CHECKS - Security_context *save_ctx; - - if (sp_change_security_context(thd, sp_trigger, &save_ctx)) - return TRUE; - - /* - NOTE: TRIGGER_ACL should be used below. - */ - - if (check_global_access(thd, SUPER_ACL)) - { - sp_restore_security_context(thd, save_ctx); - return TRUE; - } - - /* - Fetch information about table-level privileges to GRANT_INFO structure for - subject table. Check of privileges that will use it and information about - column-level privileges will happen in Item_trigger_field::fix_fields(). - */ - - fill_effective_table_privileges(thd, - &subject_table_grants[event][time_type], - table->s->db, table->s->table_name); -#endif // NO_EMBEDDED_ACCESS_CHECKS - thd->reset_sub_statement_state(&statement_state, SUB_STMT_TRIGGER); - err_status= sp_trigger->execute_function(thd, 0, 0, 0); + err_status= sp_trigger->execute_trigger + (thd, table->s->db, table->s->table_name, + &subject_table_grants[event][time_type]); thd->restore_sub_statement_state(&statement_state); - -#ifndef NO_EMBEDDED_ACCESS_CHECKS - sp_restore_security_context(thd, save_ctx); -#endif // NO_EMBEDDED_ACCESS_CHECKS } return err_status; |