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

Documentation.

上级 0b5f2a87
...@@ -1728,9 +1728,15 @@ $$John's car$$ ...@@ -1728,9 +1728,15 @@ $$John's car$$
"Other Grammar","Double"," "Other Grammar","Double","
[ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ] [ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ]
"," ","
A floating point number with high precision.
The limitations are the same as for the Java data type Double. The limitations are the same as for the Java data type Double.
To ensure the floating point representation is used, use CAST.
There are some special values: to represent positive infinity, use POWER(0, -1);
for negative infinity, use (-POWER(0, -1)); for -0.0, use (-CAST(0 AS DOUBLE));
for NaN (not a number), use SQRT(-1).
"," ","
-1.4e-10 -1.4e-10
CAST(0 AS DOUBLE)
" "
"Other Grammar","Expression"," "Other Grammar","Expression","
...@@ -2031,7 +2037,7 @@ DECIMAL(20, 2) ...@@ -2031,7 +2037,7 @@ DECIMAL(20, 2)
"Data Types","DOUBLE Type"," "Data Types","DOUBLE Type","
{ DOUBLE [ PRECISION ] | FLOAT | FLOAT4 | FLOAT8 } { DOUBLE [ PRECISION ] | FLOAT | FLOAT4 | FLOAT8 }
"," ","
Floating point number. Should not be used to represent currency values, because A floating point number. Should not be used to represent currency values, because
of rounding problems. of rounding problems.
Mapped to ""java.lang.Double"". Mapped to ""java.lang.Double"".
...@@ -2042,7 +2048,7 @@ DOUBLE ...@@ -2042,7 +2048,7 @@ DOUBLE
"Data Types","REAL Type"," "Data Types","REAL Type","
REAL REAL
"," ","
Single precision floating point number. Should not be used to represent currency A single precision floating point number. Should not be used to represent currency
values, because of rounding problems. values, because of rounding problems.
Mapped to ""java.lang.Float"". Mapped to ""java.lang.Float"".
...@@ -2053,7 +2059,7 @@ REAL ...@@ -2053,7 +2059,7 @@ REAL
"Data Types","TIME Type"," "Data Types","TIME Type","
TIME TIME
"," ","
The format is hh:mm:ss. The time data type. The format is hh:mm:ss.
Mapped to ""java.sql.Time"". When converted to a ""java.sql.Date"", the date is set to ""1970-01-01"". Mapped to ""java.sql.Time"". When converted to a ""java.sql.Date"", the date is set to ""1970-01-01"".
"," ","
...@@ -2063,7 +2069,7 @@ TIME ...@@ -2063,7 +2069,7 @@ TIME
"Data Types","DATE Type"," "Data Types","DATE Type","
DATE DATE
"," ","
The format is yyyy-MM-dd. The date data type. The format is yyyy-MM-dd.
Mapped to ""java.sql.Date"", with the time set to ""00:00:00"" Mapped to ""java.sql.Date"", with the time set to ""00:00:00""
(or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change). (or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change).
...@@ -2074,7 +2080,7 @@ DATE ...@@ -2074,7 +2080,7 @@ DATE
"Data Types","TIMESTAMP Type"," "Data Types","TIMESTAMP Type","
{ TIMESTAMP | DATETIME | SMALLDATETIME } { TIMESTAMP | DATETIME | SMALLDATETIME }
"," ","
The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]. The timestamp data type. The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
Mapped to ""java.sql.Timestamp"" (""java.util.Date"" is also supported). Mapped to ""java.sql.Timestamp"" (""java.util.Date"" is also supported).
"," ","
......
...@@ -18,9 +18,15 @@ Change Log ...@@ -18,9 +18,15 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Array literals with zero or one element were not be parsed correctly. <ul><li>The double or float value -0.0 is now distinct from 0.0 (as in Java).
</li><li>TCP and PG server: if the default port is already in use, the services are now started on
another free port (unless the port is explicitly set). This allows to start the H2 Console
even if the TCP or PG servers are already running.
</li><li>LIKE didn't use an index unless the right hand side was a literal or parameter.
Now an index is used for LIKE CONCAT(?, '%').
</li><li>Array literals with zero or one element were not be parsed correctly.
Now trailing commas are ignored (as in Java). Expressions of the form '(1)' are still parsed as the value 1. Now trailing commas are ignored (as in Java). Expressions of the form '(1)' are still parsed as the value 1.
An empty array is '()'. An array with one element must contain a comma to be parsed as an array, as in '(1,)'. An empty array is '()'. An array with one element must contain a comma to be parsed as an array, as in '(1,)'.
</li><li>Issue 290: Conditions using subqueries were sometimes evaluated before much simpler conditions, </li><li>Issue 290: Conditions using subqueries were sometimes evaluated before much simpler conditions,
which was very bad for performance. This includes subqueries returning a value, EXISTS subqueries, which was very bad for performance. This includes subqueries returning a value, EXISTS subqueries,
and IN(SELECT ..) subqueries. and IN(SELECT ..) subqueries.
......
...@@ -561,7 +561,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>. ...@@ -561,7 +561,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>Optimization for large lists for column IN(1, 2, 3, 4,...) - currently an list is used, could potentially use a hash set </li><li>Optimization for large lists for column IN(1, 2, 3, 4,...) - currently an list is used, could potentially use a hash set
(maybe only for a part of the values - the ones that can be evaluated). (maybe only for a part of the values - the ones that can be evaluated).
</li><li>Compatibility for ARRAY data type (Oracle: VARRAY(n) of VARCHAR(m); HSQLDB: VARCHAR(n) ARRAY; Postgres: VARCHAR(n)[]). </li><li>Compatibility for ARRAY data type (Oracle: VARRAY(n) of VARCHAR(m); HSQLDB: VARCHAR(n) ARRAY; Postgres: VARCHAR(n)[]).
</li><li>PostgreSQL compatible array literal syntax: ARRAY[['breakfast', 'consulting'], ['meeting', 'lunch']] </li><li>PostgreSQL compatible array literal syntax: ARRAY[['a', 'b'], ['c', 'd']]
</li></ul> </li></ul>
<h2>Not Planned</h2> <h2>Not Planned</h2>
......
...@@ -163,6 +163,10 @@ This can be done by changing the port in the file <code>.h2.server.properties</c ...@@ -163,6 +163,10 @@ This can be done by changing the port in the file <code>.h2.server.properties</c
in the user directory (for Windows, this is usually in <code>Documents and Settings/&lt;username&gt;</code>). in the user directory (for Windows, this is usually in <code>Documents and Settings/&lt;username&gt;</code>).
The relevant entry is webPort. The relevant entry is webPort.
</p> </p>
<p>
If no port is specified for the TCP and PG servers, they will try to listen on the default port for the given service.
If the default port is already in use, a random port is used.
</p>
<h3>Connecting to the Server using a Browser</h3> <h3>Connecting to the Server using a Browser</h3>
<p> <p>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -202,8 +202,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat ...@@ -202,8 +202,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* <li>21 SCOPE_TABLE (String) always null </li> * <li>21 SCOPE_TABLE (String) always null </li>
* <li>22 SOURCE_DATA_TYPE (short) null </li> * <li>22 SOURCE_DATA_TYPE (short) null </li>
* <li>23 IS_AUTOINCREMENT (String) "NO" or "YES" </li> * <li>23 IS_AUTOINCREMENT (String) "NO" or "YES" </li>
* <li>24 SCOPE_CATLOG (String) always null * <li>24 SCOPE_CATLOG (String) always null (the typo is on purpose,
* (the typo is on purpose, for compatibility with the JDBC specification prior to 4.1)</li> * for compatibility with the JDBC specification prior to 4.1)</li>
* </ul> * </ul>
* *
* @param catalogPattern null (to get all objects) or the catalog name * @param catalogPattern null (to get all objects) or the catalog name
......
...@@ -108,6 +108,9 @@ public class TraceObject { ...@@ -108,6 +108,9 @@ public class TraceObject {
"ds", "xads", "xares", "xid", "ar" "ds", "xads", "xares", "xid", "ar"
}; };
/**
* The trace module used by this object.
*/
protected Trace trace; protected Trace trace;
private int traceType; private int traceType;
......
...@@ -677,4 +677,5 @@ trouble designed decouple reflectively skeletons retention reflective validates ...@@ -677,4 +677,5 @@ trouble designed decouple reflectively skeletons retention reflective validates
clip upgrades demonstrate inspectors clip upgrades demonstrate inspectors
exceed identities differentiate inherited tracks notated strip suggestions exceed identities differentiate inherited tracks notated strip suggestions
registration sanity improperly annotate inheritance composite inspected registration sanity improperly annotate inheritance composite inspected
hurt imposes marshal policy upgrader configurations dark hurt imposes marshal policy upgrader configurations dark varray xlint executor
completion
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论