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

Documentation / small improvement.

上级 421cc9fc
...@@ -18,7 +18,8 @@ Change Log ...@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>When using multi-version concurrency, re-running a prepared statement with the same parameters <ul><li>Creating a comment on a column didn't work if the schema name was equal the database name.
</li><li>When using multi-version concurrency, re-running a prepared statement with the same parameters
would sometimes give the same result even if another connection committed a change (the previous result was sometimes would sometimes give the same result even if another connection committed a change (the previous result was sometimes
re-used incorrectly). re-used incorrectly).
</li><li>When using SELECT_FOR_UPDATE_MVCC (lock only the selected rows when using MVCC), </li><li>When using SELECT_FOR_UPDATE_MVCC (lock only the selected rows when using MVCC),
......
...@@ -398,12 +398,14 @@ public class Schema extends DbObjectBase { ...@@ -398,12 +398,14 @@ public class Schema extends DbObjectBase {
*/ */
public Table getTableOrView(Session session, String name) { public Table getTableOrView(Session session, String name) {
Table table = tablesAndViews.get(name); Table table = tablesAndViews.get(name);
if (table == null && session != null) { if (table == null) {
if (session != null) {
table = session.findLocalTempTable(name); table = session.findLocalTempTable(name);
} }
if (table == null) { if (table == null) {
throw DbException.get(ErrorCode.TABLE_OR_VIEW_NOT_FOUND_1, name); throw DbException.get(ErrorCode.TABLE_OR_VIEW_NOT_FOUND_1, name);
} }
}
return table; return table;
} }
......
...@@ -38,7 +38,7 @@ public class Script extends Tool { ...@@ -38,7 +38,7 @@ public class Script extends Tool {
* <tr><td>[-script &lt;file&gt;]</td> * <tr><td>[-script &lt;file&gt;]</td>
* <td>The target script file name (default: backup.sql)</td></tr> * <td>The target script file name (default: backup.sql)</td></tr>
* <tr><td>[-options ...]</td> * <tr><td>[-options ...]</td>
* <td>A list of options (only for embedded H2, see RUNSCRIPT)</td></tr> * <td>A list of options (only for embedded H2, see SCRIPT)</td></tr>
* <tr><td>[-quiet]</td> * <tr><td>[-quiet]</td>
* <td>Do not print progress information</td></tr> * <td>Do not print progress information</td></tr>
* </table> * </table>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论