summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.h
diff options
context:
space:
mode:
authorunknown <mskold/marty@linux.site>2007-04-04 13:21:49 +0200
committerunknown <mskold/marty@linux.site>2007-04-04 13:21:49 +0200
commit655a58d85c5b83824ceec5a7041bbb3b84b5731a (patch)
tree625030adbf3bf1a60ae1260b13c5cfa9ce655ef6 /sql/sql_trigger.h
parent5abe2fdba4823370b50495ca1f926a514124785c (diff)
parent2efc0f51cf3e80cd49c1ea0dee9a440936ee6287 (diff)
downloadmariadb-git-655a58d85c5b83824ceec5a7041bbb3b84b5731a.tar.gz
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1 sql/ha_ndbcluster.h: Auto merged sql/sql_trigger.h: Auto merged mysql-test/r/ndb_trigger.result: Using local, will re-generate. include/my_base.h: Merge mysql-test/t/ndb_trigger.test: Merge sql/ha_ndbcluster.cc: Merge sql/mysql_priv.h: Merge sql/sql_delete.cc: Merge sql/sql_insert.cc: Merge sql/sql_load.cc: Merge sql/sql_update.cc: Merge
Diffstat (limited to 'sql/sql_trigger.h')
-rw-r--r--sql/sql_trigger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_trigger.h b/sql/sql_trigger.h
index 75dda6be1cf..2be42cbccac 100644
--- a/sql/sql_trigger.h
+++ b/sql/sql_trigger.h
@@ -110,6 +110,11 @@ public:
const char *old_table,
const char *new_db,
const char *new_table);
+ bool has_triggers(trg_event_type event_type,
+ trg_action_time_type action_time)
+ {
+ return (bodies[event_type][action_time]);
+ }
bool has_delete_triggers()
{
return (bodies[TRG_EVENT_DELETE][TRG_ACTION_BEFORE] ||