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

--no commit message

--no commit message
上级 23d68f4f
......@@ -389,9 +389,9 @@ public class SysProperties {
/**
* System property <code>h2.sortNullsHigh</code> (default: false).<br />
* Invert the default sorting behavior for NULL values, such that NULL values
* are sorted to the end of a result set in an ascending sort and to the beginning
* of a result set in a descending sort.
* Invert the default sorting behavior for NULL values, such that NULL
* values are sorted to the end of a result set in an ascending sort and to
* the beginning of a result set in a descending sort.
*/
public static final boolean SORT_NULLS_HIGH = getBooleanSetting("h2.sortNullsHigh", false);
......
......@@ -435,7 +435,8 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* 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() {
debugCodeCall("nullsAreSortedHigh");
......@@ -444,8 +445,9 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* 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() {
debugCodeCall("nullsAreSortedLow");
......
......@@ -8,7 +8,7 @@
* 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
* 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
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
......@@ -32,7 +32,8 @@ import javax.sql.PooledConnection;
* MiniConnectionPoolManager written by Christian d'Heureuse (JDK 1.5)
* </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)
*/
public class JdbcConnectionPoolManager {
......
......@@ -163,15 +163,16 @@ java org.h2.test.TestAll timer
should write (log) to system table before adding to internal data structures
//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: log at startup next 5
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:
select distinct x from system_range(1, 200000);
......@@ -189,25 +190,9 @@ INSERT INTO TEST VALUES(1,'Apples',1.20),
(9,NULL,-10.0);
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
in-place auto-complete
test with:
- large varchar columns (40 KB)
- not closing the database
test multi-threaded kernel fulltext
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
History:
When a log file switch occured in the middle of a sequence flush (sequences are only
flushed every 32 values by default), the sequence was lost. 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.
When a log file switch occured in the middle of a sequence flush
(sequences are only flushed every 32 values by default), the sequence
was lost. 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 are multiple log files to recover.
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,
CSVWRITE caused a NullPointerException when not specifying a nullString.
New system property h2.sortNullsHigh to invert the default sorting behavior
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:
......@@ -248,7 +236,7 @@ SET LOG_SYSTEM
{NATIVE|LOG4J|COMMONS|DRIVER_MANAGER}
Fluent API for tools: Server.createTcpServer().
setPort(9081).setPassword(password).start();
MySQL compatiblity: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
MySQL compatibility: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
Use a default delay of 1 second before closing a database.
*/
......
/*
* Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
* (license2)
* Initial Developer: H2 Group
*/
package org.h2.test.jdbcx;
import java.sql.Connection;
......@@ -7,6 +12,9 @@ import org.h2.jdbcx.JdbcConnectionPoolManager;
import org.h2.jdbcx.JdbcDataSource;
import org.h2.test.TestBase;
/**
* This class tests the JdbcConnectionPool.
*/
public class TestConnectionPool extends TestBase {
public void test() throws Exception {
......
......@@ -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
greenwich sqli informix pointbase fbj pervasive jtds ifx syb mimer sybase
frontbase intersys maxwidth belonging learning mono typical toggle winexe
hider ikvmc
\ No newline at end of file
hider ikvmc invert recycle filtering lesser recycled assertion runner teradata
christian lgpl elapsed ncr disposed heureuse tera years retrieves
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论