diff options
author | unknown <dlenev@mysql.com> | 2006-03-04 16:55:06 +0300 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2006-03-04 16:55:06 +0300 |
commit | 350475fae41d31c37214705a54bdd93bb435a4f3 (patch) | |
tree | db299ca84b23ab1fe9bd82d616d2c1de709c64ec /libmysql | |
parent | 40f38a2d3e3bda4e0c09c44cb3fd2b3623cdd553 (diff) | |
download | mariadb-git-350475fae41d31c37214705a54bdd93bb435a4f3.tar.gz |
Fix for bug #17866 "Problem with renaming table with triggers with fully
qualified subject table" which was introduced during work on bug #13525
"Rename table does not keep info of triggers".
The bug was caused by the fact that during reconstruction of CREATE TRIGGER
statement stored in .TRG file which happened during RENAME TABLE we damaged
trigger definition in case when it contained fully qualified name of subject
table (see comment for sql_yacc.yy for more info).
mysql-test/r/trigger.result:
Added test for bug #17866 "Problem with renaming table with triggers with fully
qualified subject table".
mysql-test/t/trigger.test:
Added test for bug #17866 "Problem with renaming table with triggers with fully
qualified subject table".
sql/sql_trigger.cc:
Table_triggers_list::change_table_name_in_triggers():
Instead of trying to use pointer to the end of subject table identifier
we use pointer to the beginning of FOR lexeme now, so during reconstruction
of CREATE TRIGGER statement in this function we need to add extra space
before part which begins with FOR to get nice trigger definition.
sql/sql_yacc.yy:
trigger_tail:
In this rule we can't rely on using remember_end token after table_ident token,
since value returned depends on whether table name is fully qualified or not.
So instead of trying to get pointer to the end of table identifier we use
pointer to the beginning of FOR lexeme.
Diffstat (limited to 'libmysql')
0 files changed, 0 insertions, 0 deletions