Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
f189c5e1
提交
f189c5e1
authored
3月 23, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
23d68f4f
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
34 行增加
和
34 行删除
+34
-34
SysProperties.java
h2/src/main/org/h2/constant/SysProperties.java
+3
-3
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+5
-3
JdbcConnectionPoolManager.java
h2/src/main/org/h2/jdbcx/JdbcConnectionPoolManager.java
+3
-2
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+13
-25
TestConnectionPool.java
h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java
+8
-0
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
没有找到文件。
h2/src/main/org/h2/constant/SysProperties.java
浏览文件 @
f189c5e1
...
@@ -389,9 +389,9 @@ public class SysProperties {
...
@@ -389,9 +389,9 @@ public class SysProperties {
/**
/**
* System property <code>h2.sortNullsHigh</code> (default: false).<br />
* System property <code>h2.sortNullsHigh</code> (default: false).<br />
* Invert the default sorting behavior for NULL values, such that NULL
values
* Invert the default sorting behavior for NULL values, such that NULL
*
are sorted to the end of a result set in an ascending sort and to the beginning
*
values are sorted to the end of a result set in an ascending sort and to
* of a result set in a descending sort.
*
the beginning
of a result set in a descending sort.
*/
*/
public
static
final
boolean
SORT_NULLS_HIGH
=
getBooleanSetting
(
"h2.sortNullsHigh"
,
false
);
public
static
final
boolean
SORT_NULLS_HIGH
=
getBooleanSetting
(
"h2.sortNullsHigh"
,
false
);
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
f189c5e1
...
@@ -435,7 +435,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
...
@@ -435,7 +435,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
/**
* Checks is NULL values are sorted high (bigger than any non-null values).
* Checks is NULL values are sorted high (bigger than any non-null values).
*
*
* @return false by default; true if the system property h2.sortNullsHigh is set to true
* @return false by default; true if the system property h2.sortNullsHigh is
* set to true
*/
*/
public
boolean
nullsAreSortedHigh
()
{
public
boolean
nullsAreSortedHigh
()
{
debugCodeCall
(
"nullsAreSortedHigh"
);
debugCodeCall
(
"nullsAreSortedHigh"
);
...
@@ -445,7 +446,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
...
@@ -445,7 +446,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
/**
* Checks is NULL values are sorted low (smaller than any non-null values).
* Checks is NULL values are sorted low (smaller than any non-null values).
*
*
* @return true by default; false if the system property h2.sortNullsHigh is set to true
* @return true by default; false if the system property h2.sortNullsHigh is
* set to true
*/
*/
public
boolean
nullsAreSortedLow
()
{
public
boolean
nullsAreSortedLow
()
{
debugCodeCall
(
"nullsAreSortedLow"
);
debugCodeCall
(
"nullsAreSortedLow"
);
...
...
h2/src/main/org/h2/jdbcx/JdbcConnectionPoolManager.java
浏览文件 @
f189c5e1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* This module is free software: you can redistribute it and/or modify it under
* This module is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* Software Foundation, either version 3 of the License, or (at your option)
* any later version. See http://www.gnu.org/licenses/lgpl.html
.
* any later version. See http://www.gnu.org/licenses/lgpl.html
*
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
...
@@ -32,7 +32,8 @@ import javax.sql.PooledConnection;
...
@@ -32,7 +32,8 @@ import javax.sql.PooledConnection;
* MiniConnectionPoolManager written by Christian d'Heureuse (JDK 1.5)
* MiniConnectionPoolManager written by Christian d'Heureuse (JDK 1.5)
* </a>.
* </a>.
*
*
* @author Christian d'Heureuse (<a href="http://www.source-code.biz">www.source-code.biz</a>)
* @author Christian d'Heureuse
* (<a href="http://www.source-code.biz">www.source-code.biz</a>)
* @author Thomas Mueller (ported to JDK 1.4)
* @author Thomas Mueller (ported to JDK 1.4)
*/
*/
public
class
JdbcConnectionPoolManager
{
public
class
JdbcConnectionPoolManager
{
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
f189c5e1
...
@@ -163,15 +163,16 @@ java org.h2.test.TestAll timer
...
@@ -163,15 +163,16 @@ java org.h2.test.TestAll timer
should write (log) to system table before adding to internal data structures
should write (log) to system table before adding to internal data structures
//new TestCrashAPI().init(test).testCase(2046453618);
//new TestCrashAPI().init(test).testCase(2046453618);
temp file delete should be per-database and should stop deleting once the database is closed
--------------
--------------
scheduler: what if invoke takes more than...
scheduler: what if invoke takes more than...
scheduler: log at startup next 5
scheduler: log at startup next 5
scheduler: add an a cron functionality
scheduler: add an a cron functionality
document: read uncommitted and multi-threaded mode at the same time is dangerous
document: read uncommitted and multi-threaded mode at the same time
is dangerous
C:\temp\db\diff.patch
more tests with disk based select distinct; order by:
more tests with disk based select distinct; order by:
select distinct x from system_range(1, 200000);
select distinct x from system_range(1, 200000);
...
@@ -189,25 +190,9 @@ INSERT INTO TEST VALUES(1,'Apples',1.20),
...
@@ -189,25 +190,9 @@ INSERT INTO TEST VALUES(1,'Apples',1.20),
(9,NULL,-10.0);
(9,NULL,-10.0);
SELECT DISTINCT NAME FROM TEST;
SELECT DISTINCT NAME FROM TEST;
C:\temp\db\diff.patch
out of memory problem:
java -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m
-cp bin/h2.jar org.h2.tools.Server -log true
jdbc:h2:test;CACHE_SIZE=10000
drop all objects;
CREATE TABLE test (field1 number(10) not null, field2 number(8));
@LOOP 1000000 insert into test values(?, ?);
create index idx_number1 on test(field1);
The table 'test' contains a little over 100.000.000 records.
merge query and result frames
merge query and result frames
in-place auto-complete
in-place auto-complete
test with:
- large varchar columns (40 KB)
- not closing the database
test multi-threaded kernel fulltext
test multi-threaded kernel fulltext
Can sometimes not delete log file? need test case
Can sometimes not delete log file? need test case
...
@@ -215,10 +200,12 @@ Can sometimes not delete log file? need test case
...
@@ -215,10 +200,12 @@ Can sometimes not delete log file? need test case
Add where required // TODO: change in version 1.1
Add where required // TODO: change in version 1.1
History:
History:
When a log file switch occured in the middle of a sequence flush (sequences are only
When a log file switch occured in the middle of a sequence flush
flushed every 32 values by default), the sequence was lost. Fixed.
(sequences are only flushed every 32 values by default), the sequence
When a log file switch occured just after a truncate table or drop table statement,
was lost. Fixed.
the database could not be started normally (RECOVER=1 was required). Fixed.
When a log file switch occured just after a truncate table or drop table
statement, the database could not be started normally (RECOVER=1
was required). Fixed.
There was a bug in the recovery code that would stop recovery sometimes when
There was a bug in the recovery code that would stop recovery sometimes when
there are multiple log files to recover.
there are multiple log files to recover.
A new Shell tools is now included (org.h2.tools.Shell) query a
A new Shell tools is now included (org.h2.tools.Shell) query a
...
@@ -240,7 +227,8 @@ For years below 1, the YEAR method didn't return the correct value,
...
@@ -240,7 +227,8 @@ For years below 1, the YEAR method didn't return the correct value,
CSVWRITE caused a NullPointerException when not specifying a nullString.
CSVWRITE caused a NullPointerException when not specifying a nullString.
New system property h2.sortNullsHigh to invert the default sorting behavior
New system property h2.sortNullsHigh to invert the default sorting behavior
for NULL. The default didn't change.
for NULL. The default didn't change.
Altering a sequence didn't unlock the system table when autocommit switched off.
Altering a sequence didn't unlock the system table
when autocommit switched off.
Roadmap:
Roadmap:
...
@@ -248,7 +236,7 @@ SET LOG_SYSTEM
...
@@ -248,7 +236,7 @@ SET LOG_SYSTEM
{NATIVE|LOG4J|COMMONS|DRIVER_MANAGER}
{NATIVE|LOG4J|COMMONS|DRIVER_MANAGER}
Fluent API for tools: Server.createTcpServer().
Fluent API for tools: Server.createTcpServer().
setPort(9081).setPassword(password).start();
setPort(9081).setPassword(password).start();
MySQL compatiblity: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
MySQL compatib
i
lity: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
Use a default delay of 1 second before closing a database.
Use a default delay of 1 second before closing a database.
*/
*/
...
...
h2/src/test/org/h2/test/jdbcx/TestConnectionPool.java
浏览文件 @
f189c5e1
/*
* Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
* (license2)
* Initial Developer: H2 Group
*/
package
org
.
h2
.
test
.
jdbcx
;
package
org
.
h2
.
test
.
jdbcx
;
import
java.sql.Connection
;
import
java.sql.Connection
;
...
@@ -7,6 +12,9 @@ import org.h2.jdbcx.JdbcConnectionPoolManager;
...
@@ -7,6 +12,9 @@ import org.h2.jdbcx.JdbcConnectionPoolManager;
import
org.h2.jdbcx.JdbcDataSource
;
import
org.h2.jdbcx.JdbcDataSource
;
import
org.h2.test.TestBase
;
import
org.h2.test.TestBase
;
/**
* This class tests the JdbcConnectionPool.
*/
public
class
TestConnectionPool
extends
TestBase
{
public
class
TestConnectionPool
extends
TestBase
{
public
void
test
()
throws
Exception
{
public
void
test
()
throws
Exception
{
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
f189c5e1
...
@@ -486,4 +486,5 @@ cron ide pageview track gat analytics tracker implicitly ignores pro providers
...
@@ -486,4 +486,5 @@ cron ide pageview track gat analytics tracker implicitly ignores pro providers
tmpdir mini owns accordingly snippets receiving rainbow pools groupware biz
tmpdir mini owns accordingly snippets receiving rainbow pools groupware biz
greenwich sqli informix pointbase fbj pervasive jtds ifx syb mimer sybase
greenwich sqli informix pointbase fbj pervasive jtds ifx syb mimer sybase
frontbase intersys maxwidth belonging learning mono typical toggle winexe
frontbase intersys maxwidth belonging learning mono typical toggle winexe
hider ikvmc
hider ikvmc invert recycle filtering lesser recycled assertion runner teradata
\ No newline at end of file
christian lgpl elapsed ncr disposed heureuse tera years retrieves
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论