summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-02-09 11:05:28 +0100
committermsvensson@neptunus.(none) <>2006-02-09 11:05:28 +0100
commit32c2712083b968fae9200ec1d320a9ab900d5e80 (patch)
tree3a010fa892bff73ed77c080ee37a7d3b009cccfd /sql/sp_head.cc
parent41c6fee874ac63e450ce22b00162f9e21d507e11 (diff)
downloadmariadb-git-32c2712083b968fae9200ec1d320a9ab900d5e80.tar.gz
Bug#16878 dump of trigger
- Pass "in_comment" variable on to new lex in sp_head::reset_lex - Add testcases for dumping and reloading trigger without BEGIN/END
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 96bf2c51b02..df993d304b1 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -1584,6 +1584,8 @@ sp_head::reset_lex(THD *thd)
sublex->trg_table_fields.empty();
sublex->sp_lex_in_use= FALSE;
+ sublex->in_comment= oldlex->in_comment;
+
/* Reset type info. */
sublex->charset= NULL;