Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
81c34acc
提交
81c34acc
authored
8月 03, 2007
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
9030e8e7
全部展开
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
239 行增加
和
24 行删除
+239
-24
advanced.html
h2/src/docsrc/html/advanced.html
+77
-7
features.html
h2/src/docsrc/html/features.html
+82
-14
frame.html
h2/src/docsrc/html/frame.html
+2
-0
frame_ja.html
h2/src/docsrc/html/frame_ja.html
+2
-0
history.html
h2/src/docsrc/html/history.html
+1
-0
main_ja.html
h2/src/docsrc/html/main_ja.html
+1
-1
performance.html
h2/src/docsrc/html/performance.html
+50
-1
JdbcSQLException.java
h2/src/main/org/h2/jdbc/JdbcSQLException.java
+3
-0
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+20
-0
DbStarter.java
h2/src/tools/org/h2/server/web/DbStarter.java
+1
-1
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
81c34acc
差异被折叠。
点击展开。
h2/src/docsrc/html/features.html
浏览文件 @
81c34acc
差异被折叠。
点击展开。
h2/src/docsrc/html/frame.html
浏览文件 @
81c34acc
...
@@ -18,12 +18,14 @@ Initial Developer: H2 Group
...
@@ -18,12 +18,14 @@ Initial Developer: H2 Group
</frameset>
</frameset>
<noframes>
<noframes>
<body>
<body>
<p>
H2 (for 'Hypersonic 2') is free a Java SQL DBMS.
H2 (for 'Hypersonic 2') is free a Java SQL DBMS.
Clustering, embedded and server mode, transactions, referential integrity,
Clustering, embedded and server mode, transactions, referential integrity,
views, subqueries, triggers, encryption, and disk based or in-memory operation
views, subqueries, triggers, encryption, and disk based or in-memory operation
are supported. A browser based console application is included.
are supported. A browser based console application is included.
If you see this page your browser does not support frames.
If you see this page your browser does not support frames.
Please click here to view the
<a
href=
"search.html"
>
index
</a>
.
Please click here to view the
<a
href=
"search.html"
>
index
</a>
.
</p>
</body>
</body>
</noframes>
</noframes>
</html>
</html>
h2/src/docsrc/html/frame_ja.html
浏览文件 @
81c34acc
...
@@ -18,12 +18,14 @@ Initial Developer: H2 Group
...
@@ -18,12 +18,14 @@ Initial Developer: H2 Group
</frameset>
</frameset>
<noframes>
<noframes>
<body>
<body>
<p>
H2 (for 'Hypersonic 2') is free a Java SQL DBMS.
H2 (for 'Hypersonic 2') is free a Java SQL DBMS.
Clustering, embedded and server mode, transactions, referential integrity,
Clustering, embedded and server mode, transactions, referential integrity,
views, subqueries, triggers, encryption, and disk based or in-memory operation
views, subqueries, triggers, encryption, and disk based or in-memory operation
are supported. A browser based console application is included.
are supported. A browser based console application is included.
If you see this page your browser does not support frames.
If you see this page your browser does not support frames.
Please click here to view the
<a
href=
"search_ja.html"
>
index
</a>
.
Please click here to view the
<a
href=
"search_ja.html"
>
index
</a>
.
</p>
</body>
</body>
</noframes>
</noframes>
</html>
</html>
h2/src/docsrc/html/history.html
浏览文件 @
81c34acc
...
@@ -1092,6 +1092,7 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
...
@@ -1092,6 +1092,7 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
</li><li>
Automatic mode: jdbc:h2:auto: (embedded mode if possible, if not use server mode).
</li><li>
Automatic mode: jdbc:h2:auto: (embedded mode if possible, if not use server mode).
Problem: what to do when server stops while others are connected to it.
Problem: what to do when server stops while others are connected to it.
</li><li>
Access rights: remember the owner of an object. COMMENT: allow owner of object to change it.
</li><li>
Access rights: remember the owner of an object. COMMENT: allow owner of object to change it.
</li><li>
Implement INSTEAD OF trigger.
</li></ul>
</li></ul>
<h3>
Not Planned
</h3>
<h3>
Not Planned
</h3>
...
...
h2/src/docsrc/html/main_ja.html
浏览文件 @
81c34acc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
Initial Developer: H2 Group
Initial Developer: H2 Group
-->
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"
en"
xml:lang=
"en
"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"
ja"
xml:lang=
"ja
"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
H2 Database Engine
H2 Database Engine
</title><link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
</title><link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
...
...
h2/src/docsrc/html/performance.html
浏览文件 @
81c34acc
差异被折叠。
点击展开。
h2/src/main/org/h2/jdbc/JdbcSQLException.java
浏览文件 @
81c34acc
...
@@ -40,6 +40,9 @@ public class JdbcSQLException extends SQLException {
...
@@ -40,6 +40,9 @@ public class JdbcSQLException extends SQLException {
}
}
private
static
String
buildMessage
(
String
message
,
String
sql
,
String
state
)
{
private
static
String
buildMessage
(
String
message
,
String
sql
,
String
state
)
{
if
(
message
==
null
)
{
message
=
""
;
}
StringBuffer
buff
=
new
StringBuffer
(
message
);
StringBuffer
buff
=
new
StringBuffer
(
message
);
if
(
sql
!=
null
)
{
if
(
sql
!=
null
)
{
buff
.
append
(
"; SQL statement: "
);
buff
.
append
(
"; SQL statement: "
);
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
81c34acc
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
*/
*/
package
org
.
h2
.
test
;
package
org
.
h2
.
test
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
java.util.Properties
;
import
java.util.Properties
;
import
org.h2.server.TcpServer
;
import
org.h2.server.TcpServer
;
...
@@ -94,6 +97,23 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
...
@@ -94,6 +97,23 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
/*
/*
search from a frame (but usually don't use frames)
Class.forName("org.h2.Driver");
DeleteDbFiles.execute("~", null, true);
Connection conn1 = DriverManager.getConnection("jdbc:h2:~/test");
Statement s1 = conn1.createStatement();
s1.execute("create table test(id int)");
conn1.setAutoCommit(false);
s1.execute("delete from test");
s1.execute("PREPARE COMMIT TX_8");
s1.execute("COMMIT TRANSACTION TX_8");
Connection conn2 = DriverManager.getConnection("jdbc:h2:~/test");
conn2.createStatement().execute("select * from test");
call N'@name';
pg_version is in public instead of pg_catalog
pg_version is in public instead of pg_catalog
copyright to include 2007
copyright to include 2007
...
...
h2/src/tools/org/h2/server/web/DbStarter.java
浏览文件 @
81c34acc
...
@@ -17,7 +17,7 @@ public class DbStarter implements ServletContextListener {
...
@@ -17,7 +17,7 @@ public class DbStarter implements ServletContextListener {
// You can also get the setting from a context-param in web.xml:
// You can also get the setting from a context-param in web.xml:
ServletContext
servletContext
=
servletContextEvent
.
getServletContext
();
ServletContext
servletContext
=
servletContextEvent
.
getServletContext
();
// String url = servletContext.getInitParameter("db.url");
// String url = servletContext.getInitParameter("db.url");
conn
=
DriverManager
.
getConnection
(
"jdbc:h2:test"
,
"sa"
,
""
);
conn
=
DriverManager
.
getConnection
(
"jdbc:h2:
~/
test"
,
"sa"
,
""
);
servletContext
.
setAttribute
(
"connection"
,
conn
);
servletContext
.
setAttribute
(
"connection"
,
conn
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论