summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authoranozdrin@mysql.com <>2006-03-02 15:18:49 +0300
committeranozdrin@mysql.com <>2006-03-02 15:18:49 +0300
commitfbb59203995255042356ba0fbd681e5afd7ac607 (patch)
tree6152000814e1f8e657b10e3aacb0ef3bcf8d7f11 /sql/sql_trigger.cc
parent302239f388d0bf28ccbb3a234463f7fdd25da717 (diff)
downloadmariadb-git-fbb59203995255042356ba0fbd681e5afd7ac607.tar.gz
Implementation of WL#2897: Complete definer support in the stored routines.
The idea is to add DEFINER-clause in CREATE PROCEDURE and CREATE FUNCTION statements. Almost all support of definer in stored routines had been already done before this patch. NOTE: this patch changes behaviour of dumping stored routines in mysqldump. Before this patch, mysqldump did not dump DEFINER-clause for stored routines and this was documented behaviour. In order to get full information about stored routines, one should have dumped mysql.proc table. This patch changes this behaviour, so that DEFINER-clause is dumped. Since DEFINER-clause is not supported in CREATE PROCEDURE | FUNCTION statements before this patch, the clause is covered by additional version-specific comments.
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 9ccc70d8ccd..1fe5bf63756 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -275,7 +275,7 @@ end:
append_definer(thd, &log_query, &definer_user, &definer_host);
}
- log_query.append(thd->lex->trigger_definition_begin);
+ log_query.append(thd->lex->stmt_definition_begin);
}
/* Such a statement can always go directly to binlog, no trans cache. */