提交 c3e7d739 authored 作者: Thomas Mueller's avatar Thomas Mueller

Test and document rollback triggers.

上级 658da47a
......@@ -230,7 +230,10 @@ public class FullTextLucene extends FullText {
String trigger = StringUtils.quoteIdentifier(schema) + "." + StringUtils.quoteIdentifier(TRIGGER_PREFIX + table);
stat.execute("DROP TRIGGER IF EXISTS " + trigger);
StringBuilder buff = new StringBuilder("CREATE TRIGGER IF NOT EXISTS ");
// unlike the native fulltext search, the trigger is also called on rollback
// unlike the native fulltext search, the trigger is also called on
// rollback because transaction rollback will not undo the changes in
// the Lucene index (but it will undo the changes in the native fulltext
// index, as those operations are part of the transaction)
buff.append(trigger).
append(" AFTER INSERT, UPDATE, DELETE, ROLLBACK ON ").
append(StringUtils.quoteIdentifier(schema)).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论