提交 182c28f8 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 c264653e
......@@ -77,7 +77,7 @@ Advanced
<h3>Statements that Return a Result Set</h3>
<p>
The following statements return a result set: <code>SELECT, EXPLAIN, CALL, SCRIPT</code>.
The following statements return a result set: <code>SELECT, EXPLAIN, CALL, SCRIPT, SHOW, HELP</code>.
All other statements return an update count.
</p>
......
......@@ -1180,7 +1180,8 @@ open, one of them will then start a server (auto-reconnect is enabled automatica
</p>
<p>
All processes need to have access to the database files.
If the first connection is closed (the connection that started the server), open transactions of other connections will be rolled back.
If the first connection is closed (the connection that started the server), open transactions of other connections will be rolled back
(this may not be a problem if you don't disable autocommit).
Explicit client/server connections (using <code>jdbc:h2:tcp://</code> or <code>ssl://</code>) are not supported.
This mode is not supported for in-memory databases.
</p>
......
......@@ -351,6 +351,13 @@ profiler.startCollecting();
profiler.stopCollecting();
System.out.println(profiler.getTop(3));
</pre>
<p>
The profiler is built into the H2 Console tool, to analyze databaseses that open slowly.
To use it, run the H2 Console, and then click on 'Test Connection'.
Afterwards, click on "Test successful" and you get the most common stack traces,
which helps to find out why it took so long to connect. You will only get the stack traces
if opening the database took more than a few seconds.
</p>
<h2 id="database_profiling">Database Profiling</h2>
<p>
......
......@@ -471,7 +471,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Implement GiST (Generalized Search Tree for Secondary Storage).
</li><li>Function to read a number of bytes/characters from an BLOB or CLOB.
</li><li>Issue 156: Support SELECT ? UNION SELECT ?.
</li><li>Automatic mixed mode: support a port range list (to avoid firewall problems)
</li><li>Automatic mixed mode: support a port range list (to avoid firewall problems).
</li></ul>
<h2>Not Planned</h2>
......
......@@ -1268,9 +1268,14 @@ public class ErrorCode {
public static final int CANNOT_DROP_LAST_COLUMN = 90084;
/**
* The error with code <code>90085</code> is thrown when trying to
* manually drop an index that was generated by the system because of a
* unique constraint.
* The error with code <code>90085</code> is thrown when
* trying to manually drop an index that was generated by the system
* because of a unique or referential constraint. To find out what
* constraint causes the problem, run:
* <pre>
* SELECT * FROM INFORMATION_SCHEMA.CONSTRAINTS
* WHERE UNIQUE_INDEX_NAME = '&lt;index name&gt;';
* </pre>
* Example of wrong usage:
* <pre>
* CREATE TABLE TEST(ID INT, CONSTRAINT UID UNIQUE(ID));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论