提交 2b2162f8 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 08ef0d6f
...@@ -534,7 +534,7 @@ CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255)) ...@@ -534,7 +534,7 @@ CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))
"Commands (DDL)","CREATE TRIGGER"," "Commands (DDL)","CREATE TRIGGER","
CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER } CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER }
{ INSERT | UPDATE | DELETE | SELECT } [,...] ON tableName [ FOR EACH ROW ] { INSERT | UPDATE | DELETE | SELECT | ROLLBACK } [,...] ON tableName [ FOR EACH ROW ]
[ QUEUE int ] [ NOWAIT ] CALL triggeredClassName [ QUEUE int ] [ NOWAIT ] CALL triggeredClassName
"," ","
Creates a new trigger. The trigger class must be public. Nested and inner Creates a new trigger. The trigger class must be public. Nested and inner
...@@ -545,6 +545,9 @@ Before triggers are called after data conversion is made, default values are set ...@@ -545,6 +545,9 @@ Before triggers are called after data conversion is made, default values are set
null and length constraint checks have been made; null and length constraint checks have been made;
but before other constraints have been checked. but before other constraints have been checked.
Only row based AFTER trigger can be called on rollback.
Exceptions that occur within such triggers are ignored.
The MERGE statement will call both INSERT and UPDATE triggers. The MERGE statement will call both INSERT and UPDATE triggers.
Not supported are SELECT triggers with the option FOR EACH ROW, Not supported are SELECT triggers with the option FOR EACH ROW,
and AFTER SELECT triggers. and AFTER SELECT triggers.
......
...@@ -18,7 +18,10 @@ Change Log ...@@ -18,7 +18,10 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>The shell script h2.sh ignored command line line arguments. <ul><li>Fulltext search: exceptions within the fulltext seach package had the wrong SQL state.
</li><li>The Lucene fulltext search ignored transaction rollback. Fixed using a trigger on rollback.
</li><li>Trigger can now be called on rollback.
</li><li>The shell script h2.sh ignored command line line arguments.
</li><li>When running H2 in the Google AppEngine for Java, a AccessControlException could be thrown </li><li>When running H2 in the Google AppEngine for Java, a AccessControlException could be thrown
when trying to open a read-only database. Fixed. when trying to open a read-only database. Fixed.
</li><li>The user home directory prefix (~) is now only expanded when followed by a slash </li><li>The user home directory prefix (~) is now only expanded when followed by a slash
......
...@@ -31,7 +31,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -31,7 +31,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
<h2>Priority 1</h2> <h2>Priority 1</h2>
<ul> <ul>
<li>Bugfixes <li>Bugfixes
</li><li>Support large inserts and updates (use the transaction log for rollback). </li><li>Issue 157: Support large inserts and updates (use the transaction log for rollback).
</li><li>More tests with MULTI_THREADED=1 </li><li>More tests with MULTI_THREADED=1
</li><li>Optimization: result set caching (like MySQL); option to disable </li><li>Optimization: result set caching (like MySQL); option to disable
</li><li>Server side cursors </li><li>Server side cursors
......
...@@ -142,9 +142,9 @@ public class CacheLRU implements Cache { ...@@ -142,9 +142,9 @@ public class CacheLRU implements Cache {
flushed = true; flushed = true;
i = 0; i = 0;
} else { } else {
// can't remove any record, because the log is not written yet // can't remove any record, because the records can not be removed
// hopefully this does not happen frequently, but it can happen // hopefully this does not happen frequently, but it can happen
writer.getTrace().info("Cannot remove records, cache size too small?"); writer.getTrace().info("Cannot remove records, cache size too small? records:" + recordCount + " memory:" + sizeMemory);
break; break;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论