summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorcmiller@calliope.local.cmiller/calliope.local <>2007-02-11 13:23:23 +0100
committercmiller@calliope.local.cmiller/calliope.local <>2007-02-11 13:23:23 +0100
commite3a31165ed20a5948e53646876991457a5924406 (patch)
tree5ef95024e4999ff0762942a3d64f361797b550c9 /sql/sql_trigger.cc
parent2706b3d7374c7a4db23a4078d0bf6ed7cc39fbd9 (diff)
downloadmariadb-git-e3a31165ed20a5948e53646876991457a5924406.tar.gz
Style fix-up and comment correction.
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 3f9058f74c2..9419518f004 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -340,7 +340,7 @@ end:
tables - table list containing one open table for which the
trigger is created.
stmt_query - [OUT] after successful return, this string contains
- well-formed statement for creation this trigger.
+ well-formed statement for creating this trigger.
NOTE
- Assumes that trigger name is fully qualified.
@@ -380,7 +380,7 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
}
/* We don't allow creation of several triggers of the same type yet */
- if (bodies[lex->trg_chistics.event][lex->trg_chistics.action_time])
+ if (bodies[lex->trg_chistics.event][lex->trg_chistics.action_time] != 0)
{
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
"multiple triggers with the same action time"
@@ -673,7 +673,7 @@ static bool save_trigger_file(Table_triggers_list *triggers, const char *db,
tables - table list containing one open table for which trigger
is dropped.
stmt_query - [OUT] after successful return, this string contains
- well-formed statement for creation this trigger.
+ well-formed statement for deleting this trigger.
RETURN VALUE
False - success