提交 7ae16cdd authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 937a20d9
......@@ -488,7 +488,7 @@ The batch files are located in the directory <code>h2/service</code>.
<p>
When running the database as a service, absolute path should be used.
Using <code>~</code> in the database URL is problematic in this case,
because it means to use the home directory of the current user.
because it means to use the home directory of the current user.
The service might run without or with the wrong user, so that
the database files might end up in an unexpected place.
</p>
......
......@@ -19,7 +19,7 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul><li>Computed columns could not refer to itself.
</li><li>Issue 340: Comparison with "x = all(select ...)" or similar in a view or
</li><li>Issue 340: Comparison with "x = all(select ...)" or similar in a view or
subquery that was used as a table returned the wrong result.
</li><li>Comparison with "x = all(select ...)" or similar returned the wrong result for some cases
(for example if the subquery returned no rows, or multiple rows with the same value, or null, or if x was null).
......
......@@ -979,7 +979,7 @@ without problems.
<p>
When the database is closed, it is possible to backup the database files.
</p><p>
To backup data while the database is running,
To backup data while the database is running,
the SQL commands <code>SCRIPT</code> and <code>BACKUP</code> can be used.
</p>
......
......@@ -1002,7 +1002,7 @@ the database must not be in use while running this program.
</p>
<p>
Creating a backup by copying the database files while the database is running is not supported,
except if the file systems support creating snapshots.
except if the file systems support creating snapshots.
With other file systems, it can't be guaranteed that the data is copied in the right order.
</p>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -316,6 +316,7 @@ public abstract class Query extends Prepared {
* @param orderList the order by list
* @param visible the number of visible columns in the select list
* @param mustBeInResult all order by expressions must be in the select list
* @param filters the table filters
*/
static void initOrder(ArrayList<Expression> expressions,
ArrayList<String> expressionSQL,
......
......@@ -723,6 +723,11 @@ public class Database implements DataHandler {
}
}
/**
* Verify the meta table is locked.
*
* @param session the session
*/
public void verifyMetaLocked(Session session) {
if (!lockMeta(session) && lockMode != 0) {
throw DbException.throwInternalError();
......
......@@ -126,6 +126,12 @@ public class Comparison extends Condition {
return "(" + sql + ")";
}
/**
* Get the comparison operator string ("=", ">",...).
*
* @param compareType the compare type
* @return the string
*/
static String getCompareOperator(int compareType) {
switch (compareType) {
case EQUAL:
......
......@@ -692,3 +692,5 @@ unusual apfel caught overcareful tricky nodep junit eventually concrete
enhancer banana nit cglib challenging intercepted banane assertthrows
objenesis prepend detecting overridable eater forgetting tear
fork tester jaspa redirection johnny brings gone jooq iciql offline pdo mappings largely
pst patadia summertime jalpesh
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论