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

Documentation.

上级 d6938e50
...@@ -563,7 +563,7 @@ CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ] ...@@ -563,7 +563,7 @@ CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ]
TABLE [ IF NOT EXISTS ] name TABLE [ IF NOT EXISTS ] name
{ { ( { columnDefinition | constraint } [,...] ) [ AS select ] } { { ( { columnDefinition | constraint } [,...] ) [ AS select ] }
| { AS select } } | { AS select } }
[ ENGINE tableEngineName ] [ TRANSACTIONAL ] [ NOT PERSISTENT ] [ ENGINE tableEngineName ] [ NOT PERSISTENT ] [ TRANSACTIONAL ]
"," ","
Creates a new table. Creates a new table.
......
...@@ -1898,6 +1898,7 @@ public class ErrorCode { ...@@ -1898,6 +1898,7 @@ public class ErrorCode {
// 21S: 210, 42S: 421, HY: 50, C: 1, T: 2 // 21S: 210, 42S: 421, HY: 50, C: 1, T: 2
switch (errorCode) { switch (errorCode) {
// 02: no data // 02: no data
case NO_DATA_AVAILABLE: return "02000"; case NO_DATA_AVAILABLE: return "02000";
......
...@@ -29,6 +29,9 @@ import org.h2.util.New; ...@@ -29,6 +29,9 @@ import org.h2.util.New;
*/ */
public class TestClassLoaderLeak extends TestBase { public class TestClassLoaderLeak extends TestBase {
/**
* The name of this class (used by reflection).
*/
static final String CLASS_NAME = TestClassLoaderLeak.class.getName(); static final String CLASS_NAME = TestClassLoaderLeak.class.getName();
/** /**
...@@ -71,6 +74,9 @@ public class TestClassLoaderLeak extends TestBase { ...@@ -71,6 +74,9 @@ public class TestClassLoaderLeak extends TestBase {
return new WeakReference<ClassLoader>(cl); return new WeakReference<ClassLoader>(cl);
} }
/**
* This method is called using reflection.
*/
static void runTest() throws Exception { static void runTest() throws Exception {
Class.forName("org.h2.Driver"); Class.forName("org.h2.Driver");
Class.forName("org.h2.upgrade.v1_1.Driver"); Class.forName("org.h2.upgrade.v1_1.Driver");
......
...@@ -680,6 +680,11 @@ public class H2Database { ...@@ -680,6 +680,11 @@ public class H2Database {
// TODO // TODO
} }
/**
* Create a new RuntimeException that says this feature is not supported.
*
* @return the runtime exception
*/
public static RuntimeException unsupported() { public static RuntimeException unsupported() {
// TODO // TODO
return new RuntimeException("Feature not supported"); return new RuntimeException("Feature not supported");
......
...@@ -353,7 +353,7 @@ public class Build extends BuildBase { ...@@ -353,7 +353,7 @@ public class Build extends BuildBase {
/** /**
* Create the file h2android.jar. This only contains the embedded database, * Create the file h2android.jar. This only contains the embedded database,
* plus the H2 Andoid API. Debug information is disabled. * plus the H2 Android API. Debug information is disabled.
*/ */
public void jarAndroid() { public void jarAndroid() {
compile(false, false, true); compile(false, false, true);
......
...@@ -680,4 +680,5 @@ registration sanity improperly annotate inheritance composite inspected ...@@ -680,4 +680,5 @@ registration sanity improperly annotate inheritance composite inspected
hurt imposes marshal policy upgrader configurations dark varray xlint executor hurt imposes marshal policy upgrader configurations dark varray xlint executor
completion inactivity exports maintains backside schwietzke rene rectangular grandin noel completion inactivity exports maintains backside schwietzke rene rectangular grandin noel
sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical killer sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical killer
diagnostics checkout somewhat diagnostics checkout somewhat icu delegation classifications karlsson applet
litailang springsource eccn springframework spr growth
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论