Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
42967945
提交
42967945
authored
2月 28, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
a77601c8
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
1195 行增加
和
1131 行删除
+1195
-1131
advanced.html
h2/src/docsrc/html/advanced.html
+1
-1
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
faq.html
h2/src/docsrc/html/faq.html
+2
-2
history.html
h2/src/docsrc/html/history.html
+1
-1
mainWeb.html
h2/src/docsrc/html/mainWeb.html
+2
-2
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+385
-370
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+385
-370
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+376
-371
Prepared.java
h2/src/main/org/h2/command/Prepared.java
+4
-1
PageBtreeIndex.java
h2/src/main/org/h2/index/PageBtreeIndex.java
+2
-1
PageScanIndex.java
h2/src/main/org/h2/index/PageScanIndex.java
+2
-1
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+3
-3
PageStore.java
h2/src/main/org/h2/store/PageStore.java
+4
-2
Shell.java
h2/src/main/org/h2/tools/Shell.java
+17
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+9
-4
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-0
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
42967945
...
...
@@ -348,7 +348,7 @@ Other database engines may commit the transaction in this case when the result s
There is a list of keywords that can't be used as identifiers (table names, column names and so on),
unless they are quoted (surrounded with double quotes). The list is currently:
</p><p>
CROSS, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DISTINCT, EXCEPT, EXISTS, FALSE,
CROSS, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DISTINCT, EXCEPT, EXISTS, FALSE,
FOR, FROM, FULL, GROUP, HAVING, INNER, INTERSECT, IS, JOIN, LIKE, LIMIT, MINUS, NATURAL, NOT, NULL,
ON, ORDER, PRIMARY, ROWNUM, SELECT, SYSDATE, SYSTIME, SYSTIMESTAMP, TODAY, TRUE, UNION, WHERE
</p><p>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
42967945
...
...
@@ -19,7 +19,7 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul><li>
JdbcConnectionPool: it was possible to set a negative connection pool size.
</li><li>
Fulltext search did not support table names with a backslash.
</li><li>
Fulltext search did not support table names with a backslash.
</li><li>
The internal IntArray class did not work correctly when initialized with a zero length array.
</li><li>
The H2 Console web application (war file) did only support ASCII characters.
Now UTF-8 is supported.
...
...
h2/src/docsrc/html/faq.html
浏览文件 @
42967945
...
...
@@ -46,13 +46,13 @@ Frequently Asked Questions
Usually, bugs get fixes as they are found. There is a release every few weeks.
Here is the list of known and confirmed issues:
</p>
<ul><li>
Tomcat and Glassfish 3 set
s all
static fields (final or non-final) to null when
<ul><li>
Tomcat and Glassfish 3 set
most
static fields (final or non-final) to null when
unloading a web application. This can cause a NullPointerException in H2 versions
1.1.107 and older, and may still not work in newer versions. Please report it if you
run into this issue. In Tomcat >= 6.0 this behavior can be disabled by setting the
system property org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES
to false, however Tomcat may then run out of memory. A known workaround is to
put the h2.jar file in
the
<code>
lib
</code>
directory
.
put the h2.jar file in
a shared
<code>
lib
</code>
directory (common/lib)
.
</li><li>
Some problems have been found with right outer join. Internally, it is converted
to left outer join, which does not always produce the same results as other databases
when used in combination with other joins.
...
...
h2/src/docsrc/html/history.html
浏览文件 @
42967945
...
...
@@ -117,7 +117,7 @@ via PayPal:
</li><li>
Pete Haidinyak, USA
</li><li>
William Osmond, USA
</li><li>
Joachim Ansorg, Germany
</li><li>
Oliver Soerensen, Germany
</li></ul>
<!-- [close] { -->
</div></td></tr></table>
<!-- } --><!-- analytics -->
</body></html>
...
...
h2/src/docsrc/html/mainWeb.html
浏览文件 @
42967945
...
...
@@ -38,12 +38,12 @@ Welcome to H2, the Java SQL database. The main feature of H2 are:
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-${versionDate}.exe"
><img
style=
"border: 1px #00f solid;"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-${versionDate}.exe"
>
Windows Installer (3.
1
MB)
</a>
<a
href=
"http://www.h2database.com/h2-setup-${versionDate}.exe"
>
Windows Installer (3.
3
MB)
</a>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-${versionDate}.zip"
><img
style=
"border: 1px #00f solid;"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-${versionDate}.zip"
>
All Platforms (zip, 4.
7
MB)
</a>
<a
href=
"http://www.h2database.com/h2-${versionDate}.zip"
>
All Platforms (zip, 4.
9
MB)
</a>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<a
href=
"download.html"
>
All Downloads (including Stable)
</a>
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
42967945
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
42967945
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
42967945
差异被折叠。
点击展开。
h2/src/main/org/h2/command/Prepared.java
浏览文件 @
42967945
...
...
@@ -419,7 +419,10 @@ public abstract class Prepared {
protected
SQLException
setRow
(
SQLException
ex
,
int
rowId
,
String
values
)
{
if
(
ex
instanceof
JdbcSQLException
)
{
JdbcSQLException
e
=
(
JdbcSQLException
)
ex
;
StringBuffer
buff
=
new
StringBuffer
(
sqlStatement
);
StringBuffer
buff
=
new
StringBuffer
();
if
(
sqlStatement
!=
null
)
{
buff
.
append
(
sqlStatement
);
}
buff
.
append
(
" -- "
);
if
(
rowId
>
0
)
{
buff
.
append
(
"row #"
).
append
(
rowId
+
1
).
append
(
" "
);
...
...
h2/src/main/org/h2/index/PageBtreeIndex.java
浏览文件 @
42967945
...
...
@@ -55,7 +55,8 @@ public class PageBtreeIndex extends BaseIndex {
int
test
;
// } else if (store.isNew()) {
// // the system table for a new database
// PageBtreeLeaf root = new PageBtreeLeaf(this, headPos, Page.ROOT, store.createDataPage());
// PageBtreeLeaf root = new PageBtreeLeaf(this,
// headPos, Page.ROOT, store.createDataPage());
// store.updateRecord(root, true, root.data);
}
else
{
rowCount
=
getPage
(
headPos
).
getRowCount
();
...
...
h2/src/main/org/h2/index/PageScanIndex.java
浏览文件 @
42967945
...
...
@@ -56,7 +56,8 @@ public class PageScanIndex extends BaseIndex implements RowIndex {
int
test
;
// } else if (store.isNew()) {
// // the system table for a new database
// PageDataLeaf root = new PageDataLeaf(this, headPos, Page.ROOT, store.createDataPage());
// PageDataLeaf root = new PageDataLeaf(this, headPos,
// Page.ROOT, store.createDataPage());
// store.updateRecord(root, true, root.data);
}
else
{
PageData
root
=
getPage
(
headPos
);
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
42967945
...
...
@@ -515,12 +515,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* @return the procedures
* @throws SQLException if the connection is closed
*/
public
ResultSet
getProcedures
(
String
catalog
,
String
schemaPattern
,
public
ResultSet
getProcedures
(
String
catalog
Pattern
,
String
schemaPattern
,
String
procedureNamePattern
)
throws
SQLException
{
try
{
if
(
isDebugEnabled
())
{
debugCode
(
"getProcedures("
+
quote
(
catalog
)+
", "
+
quote
(
catalog
Pattern
)+
", "
+
quote
(
schemaPattern
)+
", "
+
quote
(
procedureNamePattern
)+
");"
);
}
...
...
@@ -539,7 +539,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
+
"AND ALIAS_SCHEMA LIKE ? "
+
"AND ALIAS_NAME LIKE ? "
+
"ORDER BY PROCEDURE_SCHEM, PROCEDURE_NAME, NUM_INPUT_PARAMS"
);
prep
.
setString
(
1
,
getCatalogPattern
(
catalog
));
prep
.
setString
(
1
,
getCatalogPattern
(
catalog
Pattern
));
prep
.
setString
(
2
,
getSchemaPattern
(
schemaPattern
));
prep
.
setString
(
3
,
getPattern
(
procedureNamePattern
));
return
prep
.
executeQuery
();
...
...
h2/src/main/org/h2/store/PageStore.java
浏览文件 @
42967945
...
...
@@ -235,8 +235,10 @@ trace.setLevel(TraceSystem.DEBUG);
cols
.
add
(
new
Column
(
"TABLE"
,
Value
.
INT
));
cols
.
add
(
new
Column
(
"COLUMNS"
,
Value
.
STRING
));
int
headPos
=
getSystemRootPageId
();
// pageTable = database.getMainSchema().createTable("PAGE_INDEX", 0, cols, true, false, headPos);
// pageIndex = (PageScanIndex) pageTable.getScanIndex(database.getSystemSession());
// pageTable = database.getMainSchema().createTable(
// "PAGE_INDEX", 0, cols, true, false, headPos);
// pageIndex = (PageScanIndex) pageTable.getScanIndex(
// database.getSystemSession());
}
private
void
initLogs
()
{
...
...
h2/src/main/org/h2/tools/Shell.java
浏览文件 @
42967945
...
...
@@ -93,6 +93,20 @@ public class Shell {
this
.
err
=
err
;
}
/**
* Redirects the input and output. By default, System.in, out and err are
* used.
*
* @param reader the input stream reader to use
* @param out the output stream to use
* @param err the output error stream to use
*/
public
void
setStreams
(
BufferedReader
reader
,
PrintStream
out
,
PrintStream
err
)
{
this
.
reader
=
reader
;
this
.
out
=
out
;
this
.
err
=
err
;
}
/**
* Run the shell tool with the given command line settings.
*
...
...
@@ -145,7 +159,9 @@ public class Shell {
showHelp
();
}
String
statement
=
null
;
reader
=
new
BufferedReader
(
new
InputStreamReader
(
in
));
if
(
reader
==
null
)
{
reader
=
new
BufferedReader
(
new
InputStreamReader
(
in
));
}
while
(
true
)
{
try
{
if
(
conn
==
null
)
{
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
42967945
...
...
@@ -283,14 +283,20 @@ java org.h2.test.TestAll timer
/*
select 1 from dual a where 1 in(select 1 from dual b
where 1 in(select 1 from dual c where a.x=1));
http://www.marciowb.net/blog/2008/08/quickly-using-h2-database-with
http://blogs.sun.com/theaquarium/entry/h2_database_with_glassfish
http://blog.flexive.org/2008/12/05/porting-flexive-to-the-h2-database/
test performance with log=2
maybe make log=2 the default option
TRANSACTION_ID()
select 1 from dual a where 1 in(select 1 from dual b
where 1 in(select 1 from dual c where a.x=1));
use 127.0.0.1 if other addresses don't work
select for update in mvcc mode: only lock the selected records?
...
...
@@ -300,7 +306,6 @@ JCR: for each node type, create a table; one 'dynamic' table with parameter;
<link rel="icon" type="image/png" href="/path/image.png">
create a short 4 pages documentation
http://blog.flexive.org/2008/12/05/porting-flexive-to-the-h2-database/
postgresql generate_series?
is in-memory scan index re-using ids?
don't store default values (store a special value)
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
42967945
...
...
@@ -582,3 +582,4 @@ bot jot delicious rife appenders circles spelling cash sky ecm nuxeo poland
opengeospatial sfs symmetric obsolete failing parenthesis unloading refreshed
grails reloading slightly accepting deploying conflicting recovered counters
versus extracts squirrel misdirected rle looking arc addressed european
soerensen
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论