Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b3d6a60b
提交
b3d6a60b
authored
10月 28, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Spelling.
上级
02f6aad5
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
13 行增加
和
10 行删除
+13
-10
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
PageFreeList.java
h2/src/main/org/h2/store/PageFreeList.java
+2
-0
PageStore.java
h2/src/main/org/h2/store/PageStore.java
+1
-1
ValueTimestamp.java
h2/src/main/org/h2/value/ValueTimestamp.java
+3
-3
TestResultSet.java
h2/src/test/org/h2/test/jdbc/TestResultSet.java
+2
-2
TestTools.java
h2/src/test/org/h2/test/unit/TestTools.java
+2
-2
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
b3d6a60b
...
...
@@ -34,7 +34,7 @@ Change Log
</li><li>
Sequences with cache size smaller than 0 did not work correctly.
</li><li>
Issue 356: for Blob objects, InputStream.skip() returned 0,
causing EOFException in Blob.getBytes(.., ..).
</li><li>
Updat
e
able result sets: if the value is not set when inserting a new row,
</li><li>
Updatable result sets: if the value is not set when inserting a new row,
the default value is now used (the same behavior as MySQL, PostgreSQL, and Apache Derby)
instead of NULL.
</li><li>
Conditions of the form IN(SELECT ...) where slow and increased the database size
...
...
h2/src/main/org/h2/store/PageFreeList.java
浏览文件 @
b3d6a60b
...
...
@@ -29,6 +29,8 @@ public class PageFreeList extends Page {
private
Data
data
;
private
PageFreeList
(
PageStore
store
,
int
pageId
)
{
int
todoKeptInTwoPlaces
;
// kept in cache, and array list in page store
setPos
(
pageId
);
this
.
store
=
store
;
pageCount
=
(
store
.
getPageSize
()
-
DATA_START
)
*
8
;
...
...
h2/src/main/org/h2/store/PageStore.java
浏览文件 @
b3d6a60b
...
...
@@ -143,7 +143,7 @@ public class PageStore implements CacheWriter {
private
boolean
recoveryRunning
;
/**
* The index to the first freelist page that potentially has free space.
* The index to the first free
-
list page that potentially has free space.
*/
private
int
firstFreeListIndex
;
...
...
h2/src/main/org/h2/value/ValueTimestamp.java
浏览文件 @
b3d6a60b
...
...
@@ -151,9 +151,9 @@ public class ValueTimestamp extends Value {
minute
-=
hour
*
60
;
long
millis
=
DateTimeUtils
.
getMillis
(
tz
,
year
,
month
,
day
,
hour
,
minute
,
(
int
)
second
,
(
int
)
ms
);
ms
=
DateTimeUtils
.
convertToLocal
(
new
Date
(
millis
),
Calendar
.
getInstance
(
TimeZone
.
getTimeZone
(
"UTC"
)));
long
m
p
d
=
DateTimeUtils
.
MILLIS_PER_DAY
;
long
absoluteDay
=
(
ms
>=
0
?
ms
:
ms
-
m
pd
+
1
)
/
mp
d
;
ms
-=
absoluteDay
*
m
p
d
;
long
md
=
DateTimeUtils
.
MILLIS_PER_DAY
;
long
absoluteDay
=
(
ms
>=
0
?
ms
:
ms
-
m
d
+
1
)
/
m
d
;
ms
-=
absoluteDay
*
md
;
nanos
+=
ms
*
1000000
;
}
}
...
...
h2/src/test/org/h2/test/jdbc/TestResultSet.java
浏览文件 @
b3d6a60b
...
...
@@ -56,7 +56,7 @@ public class TestResultSet extends TestBase {
stat
=
conn
.
createStatement
();
testAmbiguousColumnNames
();
testInsertRowWithUpdat
e
ableResultSetDefault
();
testInsertRowWithUpdatableResultSetDefault
();
testBeforeFirstAfterLast
();
testParseSpecialValues
();
testSpecialLocale
();
...
...
@@ -101,7 +101,7 @@ public class TestResultSet extends TestBase {
stat
.
execute
(
"drop table test"
);
}
private
void
testInsertRowWithUpdat
e
ableResultSetDefault
()
throws
SQLException
{
private
void
testInsertRowWithUpdatableResultSetDefault
()
throws
SQLException
{
stat
.
execute
(
"create table test(id int primary key, data varchar(255) default 'Hello')"
);
PreparedStatement
prep
=
conn
.
prepareStatement
(
"select * from test"
,
ResultSet
.
TYPE_SCROLL_INSENSITIVE
,
ResultSet
.
CONCUR_UPDATABLE
);
...
...
h2/src/test/org/h2/test/unit/TestTools.java
浏览文件 @
b3d6a60b
...
...
@@ -907,11 +907,11 @@ public class TestTools extends TestBase {
return
data
.
length
();
}
public
long
position
(
String
search
str
,
long
start
)
throws
SQLException
{
public
long
position
(
String
search
,
long
start
)
throws
SQLException
{
throw
new
UnsupportedOperationException
();
}
public
long
position
(
Clob
search
str
,
long
start
)
throws
SQLException
{
public
long
position
(
Clob
search
,
long
start
)
throws
SQLException
{
throw
new
UnsupportedOperationException
();
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
b3d6a60b
...
...
@@ -692,5 +692,6 @@ unusual apfel caught overcareful tricky nodep junit eventually concrete
enhancer banana nit cglib challenging intercepted banane assertthrows
objenesis prepend detecting overridable eater forgetting tear
fork tester jaspa redirection johnny brings gone jooq iciql offline pdo mappings largely
pst patadia summertime jalpesh scheme compilable
pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima
kokoci seldom jaros ciphers srcs
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论