提交 496327b2 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 e807600e
......@@ -39,10 +39,15 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>Version 1.0 (Current)</h3>
<h3>Version 1.0 / 2007-TODO</h3><ul>
<li>
<li>Some Unicode characters where not supported as identifier name.
Thanks Yusuke Fukushima for reporting this problem.
</li><li>The default value DEFAULT_MAX_LENGTH_INPLACE_LOB has been changed from 128 to 1024.
</li><li>A server that implements the PostgreSQL protocol is now included and documented.
That means, the PostgreSQL ODBC driver can be used to access a H2 database.
See in the documentation for details.
</li><li>The experimental H2 ODBC driver has been removed.
</li><li>The default value for h2.defaultMaxMemoryUndo is now 50000.
This avoids out of memory problems when using very large transactions,
This avoids out of memory problems when using large transactions,
however large transactions are slower because they are buffered to disk.
To disable, use -Dh2.defaultMaxMemoryUndo=2000000000.
</li><li>Support for regular expression function REGEXP_REPLACE(expression, regex, replacement)
......
......@@ -2613,7 +2613,8 @@ public class Parser {
} else if (c >= '0' && c <= '9') {
type = CHAR_VALUE;
} else {
if(Character.isLetterOrDigit(c)) {
// $ is not supported at this time (compatbility for PostgreSQL: $1 )
if(Character.isJavaIdentifierPart(c)) {
type = CHAR_NAME;
char u = Character.toUpperCase(c);
if(u != c) {
......
......@@ -108,7 +108,7 @@ public class Constants {
public static final String SUFFIX_LOBS_DIRECTORY = ".lobs.db";
public static final String UTF8 = "UTF8";
public static final int DEFAULT_TABLE_TYPE = 0;
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB = 128;
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB = 1024;
public static final int DEFAULT_MAX_LENGTH_CLIENTSIDE_LOB = 65536;
public static final int SALT_LEN = 8;
public static final int DEFAULT_DATA_PAGE_SIZE = 512;
......
......@@ -62,12 +62,12 @@ Random test:
cd bin
del *.db
start cmd /k "java -cp .;%H2DRIVERS% org.h2.test.TestAll join >testJoin.txt"
start cmd /k "java org.h2.test.TestAll crash >testCrash.txt"
start cmd /k "java org.h2.test.TestAll synth >testSynth.txt"
start cmd /k "java org.h2.test.TestAll all >testAll.txt"
start cmd /k "java org.h2.test.TestAll random >testRandom.txt"
start cmd /k "java org.h2.test.TestAll btree >testBtree.txt"
start cmd /k "java org.h2.test.TestAll halt >testHalt.txt"
start cmd /k "java -cp . org.h2.test.TestAll crash >testCrash.txt"
start cmd /k "java -cp . org.h2.test.TestAll synth >testSynth.txt"
start cmd /k "java -cp . org.h2.test.TestAll all >testAll.txt"
start cmd /k "java -cp . org.h2.test.TestAll random >testRandom.txt"
start cmd /k "java -cp . org.h2.test.TestAll btree >testBtree.txt"
start cmd /k "java -cp . org.h2.test.TestAll halt >testHalt.txt"
java org.h2.test.TestAll timer
......@@ -94,26 +94,7 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
/*
test.properties
#size = 400
size = 100
cd C:\data\h2database\h2\bin
java -cp %H2DRIVERS% org.h2.test.bench.TestPerformance
jdbc:postgresql://localhost:5435/test
SELECT nspname AS TABLE_SCHEM FROM pg_catalog.pg_namespace WHERE nspname <> 'pg_toast' AND nspname !~ '^pg_temp_' ORDER BY TABLE_SCHEM;
PostgreSQL: ~/test doesn't work. maybe need mapping 'database name > database url' (in properties file?)
html-ja
change default:
SET MAX_LENGTH_INPLACE_LOB 1024
SET MAX_MEMORY_UNDO 50000
merge html-ja
rename Performance > Comparison [/Compatibility]
move Comparison to Other Database Engines > Comparison
......@@ -122,31 +103,10 @@ move Performance Tuning > Advanced Topics
set read-committed as the default
SELECT rolcreaterole, rolcreatedb FROM pg_roles WHERE rolname = current_user;
storages should be an int hash map
Test with newest Hibernate
-- SET client_encoding = 'UTF8';
-- SET check_function_bodies = false;
-- SET client_min_messages = warning;
-- CREATE PROCEDURAL LANGUAGE plperl;
-- CREATE PROCEDURAL LANGUAGE plpgsql;
--SET default_tablespace = '';
--SET default_with_oids = false;
pg_catalog with views
oid (object identifier)
The unique object identifier of a row. PostgreSQL automatically adds this 4-byte number to all rows. It is never re-used within the same table.
ctid (tuple identifier)
The identifier which describes the physical location of the tuple within the database. A pair of numbers are represented by the ctid: the block number, and tuple index within that block.
Test Console (batch, javaw, different platforms)
test with openoffice (metadata changes)
testHalt
java org.h2.test.TestAll halt
......@@ -179,8 +139,6 @@ I will add this to the todo list.
Improve LOB in directories performance
Improve documentation for MAX_LENGTH_INPLACE_LOB
Test Eclipse DTP 1.5 (HSQLDB / H2 connection bug fixed)
Automate real power off tests
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论