1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-10 23:02:54 +03:00
Files
mariadb/mysql-test/t
unknown a389ec0b1b Fix for bug #18153 "ALTER/OPTIMIZE/REPAIR on transactional tables corrupt
triggers".

Applying ALTER/OPTIMIZE/REPAIR TABLE statements to transactional table or to
table of any type on Windows caused disappearance of its triggers.
Bug was introduced in 5.0.19 by my fix for bug #13525 "Rename table does not
keep info of triggers" (see comment for sql_table.cc for more info).
.


mysql-test/r/trigger.result:
  Added test-case covering handling of triggers when one does ALTER TABLE which
  should move table to different database.
mysql-test/t/trigger.test:
  Added test-case covering handling of triggers when one does ALTER TABLE which
  should move table to different database.
sql/sql_table.cc:
  mysql_alter_table():
    Removal of strdup() which is no longer necessary allows us to preserve
    nice assumption that "(new_db != db || new_table != table_name) indicates
    that table will be renamed. So now we really can use this condition to
    avoid updating trigger definitions when table is not renamed.
    Note that we can't use (alter_info->flags & ALTER_RENAME) condition instead
    since it can be also true when we do "ALTER TABLE t1 RENAME TO t1".
sql/sql_trigger.cc:
  Table_triggers_list::change_table_name():
    Mentioned assumption that subject table is not renamed to itself in method
    description. Added DBUG_ASSERT() to catch wrong usage of this method.
mysql-test/r/trigger-trans.result:
  New BitKeeper file ``mysql-test/r/trigger-trans.result''
mysql-test/t/trigger-trans.test:
  New BitKeeper file ``mysql-test/t/trigger-trans.test''
2006-03-24 14:58:18 +03:00
..
2005-10-28 23:17:51 +04:00
2006-03-01 15:50:15 +04:00
2005-09-08 18:15:05 +01:00
2006-02-16 21:11:38 +03:00
2005-08-26 22:25:45 -07:00
2006-03-06 14:38:31 +04:00
2006-02-06 11:35:13 -08:00
2005-12-06 21:28:13 +01:00
2005-10-28 02:36:19 +03:00
2005-08-12 17:57:19 +03:00
2006-01-27 21:20:28 -08:00
2005-08-29 21:06:45 +02:00
2006-03-06 23:43:47 +01:00
2005-09-02 09:50:17 +03:00
2005-09-26 22:43:09 -07:00
2006-01-06 00:47:49 +02:00
2006-03-09 13:17:19 -06:00
2006-02-20 15:03:16 +01:00
2006-02-07 19:57:31 +01:00
2005-09-15 22:21:30 +04:00
2005-10-12 13:56:07 +02:00
2005-08-19 11:38:14 +03:00
2006-03-08 10:40:29 +01:00
2005-09-14 23:12:01 +03:00
2006-01-13 16:27:38 +03:00
2005-10-13 11:28:06 +02:00
2005-10-13 11:28:06 +02:00
2006-03-06 21:45:13 +01:00
2005-08-09 00:13:49 +03:00
2006-03-10 12:12:08 +01:00
2006-02-14 08:24:01 +04:00