提交 bbb23ae3 authored 作者: noelgrandin's avatar noelgrandin

Fix Issue 305: Implement SELECT ... FOR FETCH ONLY

上级 9d77b433
...@@ -29,6 +29,7 @@ Change Log ...@@ -29,6 +29,7 @@ Change Log
</li><li>Fix Issue 449: Postgres Serial data type should not automatically be marked as primary key </li><li>Fix Issue 449: Postgres Serial data type should not automatically be marked as primary key
</li><li>Fix Issue 406: support "SELECT h2version()" </li><li>Fix Issue 406: support "SELECT h2version()"
</li><li>Fix Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index </li><li>Fix Issue 389: When there is a multi-column primary key, H2 does not seem to always pick the right index
</li><li>Fix Issue 305: Implement SELECT ... FOR FETCH ONLY
</li></ul> </li></ul>
<h2>Version 1.3.171 (2013-03-17)</h2> <h2>Version 1.3.171 (2013-03-17)</h2>
......
...@@ -1674,7 +1674,7 @@ public class Parser { ...@@ -1674,7 +1674,7 @@ public class Parser {
read("RR"); read("RR");
} }
command.setForUpdate(true); command.setForUpdate(true);
} else if (readIf("READ")) { } else if (readIf("READ") || readIf("FETCH")) {
read("ONLY"); read("ONLY");
if (readIf("WITH")) { if (readIf("WITH")) {
read("RS"); read("RS");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论