Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
dc3d3fd7
提交
dc3d3fd7
authored
3月 16, 2018
作者:
Jacek Ławrynowicz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
if inlining improvements, other review changes
上级
4f750584
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
72 行增加
和
47 行删除
+72
-47
TimestampWithTimeZone.java
h2/src/main/org/h2/api/TimestampWithTimeZone.java
+4
-1
DbSchema.java
h2/src/main/org/h2/bnf/context/DbSchema.java
+3
-1
Parser.java
h2/src/main/org/h2/command/Parser.java
+4
-15
Query.java
h2/src/main/org/h2/command/dml/Query.java
+5
-1
Select.java
h2/src/main/org/h2/command/dml/Select.java
+1
-4
Update.java
h2/src/main/org/h2/command/dml/Update.java
+1
-1
Database.java
h2/src/main/org/h2/engine/Database.java
+1
-4
SessionRemote.java
h2/src/main/org/h2/engine/SessionRemote.java
+2
-1
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+2
-1
PageBtreeNode.java
h2/src/main/org/h2/index/PageBtreeNode.java
+1
-1
JdbcClob.java
h2/src/main/org/h2/jdbc/JdbcClob.java
+2
-1
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+1
-1
MVStore.java
h2/src/main/org/h2/mvstore/MVStore.java
+9
-2
MVTable.java
h2/src/main/org/h2/mvstore/db/MVTable.java
+5
-2
Column.java
h2/src/main/org/h2/table/Column.java
+8
-2
JoinBatch.java
h2/src/main/org/h2/table/JoinBatch.java
+2
-2
MetaTable.java
h2/src/main/org/h2/table/MetaTable.java
+4
-1
RegularTable.java
h2/src/main/org/h2/table/RegularTable.java
+2
-1
Table.java
h2/src/main/org/h2/table/Table.java
+4
-2
TableView.java
h2/src/main/org/h2/table/TableView.java
+5
-1
SimpleResultSet.java
h2/src/main/org/h2/tools/SimpleResultSet.java
+2
-1
CompareMode.java
h2/src/main/org/h2/value/CompareMode.java
+4
-1
没有找到文件。
h2/src/main/org/h2/api/TimestampWithTimeZone.java
浏览文件 @
dc3d3fd7
...
@@ -140,7 +140,10 @@ public class TimestampWithTimeZone implements Serializable, Cloneable {
...
@@ -140,7 +140,10 @@ public class TimestampWithTimeZone implements Serializable, Cloneable {
if
(
timeNanos
!=
other
.
timeNanos
)
{
if
(
timeNanos
!=
other
.
timeNanos
)
{
return
false
;
return
false
;
}
}
return
timeZoneOffsetMins
==
other
.
timeZoneOffsetMins
;
if
(
timeZoneOffsetMins
!=
other
.
timeZoneOffsetMins
)
{
return
false
;
}
return
true
;
}
}
}
}
h2/src/main/org/h2/bnf/context/DbSchema.java
浏览文件 @
dc3d3fd7
...
@@ -71,8 +71,10 @@ public class DbSchema {
...
@@ -71,8 +71,10 @@ public class DbSchema {
}
else
if
(
contents
.
isPostgreSQL
()
&&
}
else
if
(
contents
.
isPostgreSQL
()
&&
StringUtils
.
toUpperEnglish
(
name
).
startsWith
(
"PG_"
))
{
StringUtils
.
toUpperEnglish
(
name
).
startsWith
(
"PG_"
))
{
isSystem
=
true
;
isSystem
=
true
;
}
else
if
(
contents
.
isDerby
()
&&
name
.
startsWith
(
"SYS"
))
{
isSystem
=
true
;
}
else
{
}
else
{
isSystem
=
contents
.
isDerby
()
&&
name
.
startsWith
(
"SYS"
)
;
isSystem
=
false
;
}
}
}
}
...
...
h2/src/main/org/h2/command/Parser.java
浏览文件 @
dc3d3fd7
...
@@ -285,11 +285,6 @@ public class Parser {
...
@@ -285,11 +285,6 @@ public class Parser {
if
(
hasMore
)
{
if
(
hasMore
)
{
String
remaining
=
originalSQL
.
substring
(
parseIndex
);
String
remaining
=
originalSQL
.
substring
(
parseIndex
);
if
(
remaining
.
trim
().
length
()
!=
0
)
{
if
(
remaining
.
trim
().
length
()
!=
0
)
{
// list.addCommand(c);
// do {
// c = parseCommand();
// list.addCommand(c);
// } while (currentToken.equals(";"));
c
=
new
CommandList
(
this
,
sql
,
c
,
remaining
);
c
=
new
CommandList
(
this
,
sql
,
c
,
remaining
);
}
}
}
}
...
@@ -3567,21 +3562,15 @@ public class Parser {
...
@@ -3567,21 +3562,15 @@ public class Parser {
private
boolean
equalsToken
(
String
a
,
String
b
)
{
private
boolean
equalsToken
(
String
a
,
String
b
)
{
if
(
a
==
null
)
{
if
(
a
==
null
)
{
return
b
==
null
;
return
b
==
null
;
}
else
if
(
a
.
equals
(
b
))
{
}
else
return
true
;
return
a
.
equals
(
b
)
||
!
identifiersToUpper
&&
a
.
equalsIgnoreCase
(
b
);
}
else
{
return
!
identifiersToUpper
&&
a
.
equalsIgnoreCase
(
b
);
}
}
}
private
static
boolean
equalsTokenIgnoreCase
(
String
a
,
String
b
)
{
private
static
boolean
equalsTokenIgnoreCase
(
String
a
,
String
b
)
{
if
(
a
==
null
)
{
if
(
a
==
null
)
{
return
b
==
null
;
return
b
==
null
;
}
else
if
(
a
.
equals
(
b
))
{
}
else
return
true
;
return
a
.
equals
(
b
)
||
a
.
equalsIgnoreCase
(
b
);
}
else
{
return
a
.
equalsIgnoreCase
(
b
);
}
}
}
private
boolean
isTokenInList
(
Collection
<
String
>
upperCaseTokenList
)
{
private
boolean
isTokenInList
(
Collection
<
String
>
upperCaseTokenList
)
{
...
...
h2/src/main/org/h2/command/dml/Query.java
浏览文件 @
dc3d3fd7
...
@@ -307,7 +307,11 @@ public abstract class Query extends Prepared {
...
@@ -307,7 +307,11 @@ public abstract class Query extends Prepared {
!
isEverything
(
ExpressionVisitor
.
INDEPENDENT_VISITOR
))
{
!
isEverything
(
ExpressionVisitor
.
INDEPENDENT_VISITOR
))
{
return
false
;
return
false
;
}
}
return
db
.
getModificationDataId
()
<=
lastEval
||
getMaxDataModificationId
()
<=
lastEval
;
if
(
db
.
getModificationDataId
()
>
lastEval
&&
getMaxDataModificationId
()
>
lastEval
)
{
return
false
;
}
return
true
;
}
}
public
final
Value
[]
getParameterValues
()
{
public
final
Value
[]
getParameterValues
()
{
...
...
h2/src/main/org/h2/command/dml/Select.java
浏览文件 @
dc3d3fd7
...
@@ -232,10 +232,7 @@ public class Select extends Query {
...
@@ -232,10 +232,7 @@ public class Select extends Query {
}
}
private
boolean
isHavingNullOrFalse
(
Value
[]
row
)
{
private
boolean
isHavingNullOrFalse
(
Value
[]
row
)
{
if
(
havingIndex
>=
0
)
{
return
havingIndex
>=
0
&&
!
row
[
havingIndex
].
getBoolean
();
return
!
row
[
havingIndex
].
getBoolean
();
}
return
false
;
}
}
private
Index
getGroupSortedIndex
()
{
private
Index
getGroupSortedIndex
()
{
...
...
h2/src/main/org/h2/command/dml/Update.java
浏览文件 @
dc3d3fd7
...
@@ -219,7 +219,7 @@ public class Update extends Prepared {
...
@@ -219,7 +219,7 @@ public class Update extends Prepared {
for
(
Column
c
:
columns
)
{
for
(
Column
c
:
columns
)
{
Expression
e
=
expressionMap
.
get
(
c
);
Expression
e
=
expressionMap
.
get
(
c
);
e
.
mapColumns
(
targetTableFilter
,
0
);
e
.
mapColumns
(
targetTableFilter
,
0
);
if
(
sourceTableFilter
!=
null
)
{
if
(
sourceTableFilter
!=
null
)
{
e
.
mapColumns
(
sourceTableFilter
,
0
);
e
.
mapColumns
(
sourceTableFilter
,
0
);
}
}
expressionMap
.
put
(
c
,
e
.
optimize
(
session
));
expressionMap
.
put
(
c
,
e
.
optimize
(
session
));
...
...
h2/src/main/org/h2/engine/Database.java
浏览文件 @
dc3d3fd7
...
@@ -2870,10 +2870,7 @@ public class Database implements DataHandler {
...
@@ -2870,10 +2870,7 @@ public class Database implements DataHandler {
* @return true if they match
* @return true if they match
*/
*/
public
boolean
equalsIdentifiers
(
String
a
,
String
b
)
{
public
boolean
equalsIdentifiers
(
String
a
,
String
b
)
{
if
(
a
.
equals
(
b
))
{
return
a
.
equals
(
b
)
||
(!
dbSettings
.
databaseToUpper
&&
a
.
equalsIgnoreCase
(
b
));
return
true
;
}
return
!
dbSettings
.
databaseToUpper
&&
a
.
equalsIgnoreCase
(
b
);
}
}
@Override
@Override
...
...
h2/src/main/org/h2/engine/SessionRemote.java
浏览文件 @
dc3d3fd7
...
@@ -103,7 +103,8 @@ public class SessionRemote extends SessionWithState implements DataHandler {
...
@@ -103,7 +103,8 @@ public class SessionRemote extends SessionWithState implements DataHandler {
ArrayList
<
String
>
serverList
=
new
ArrayList
<>();
ArrayList
<
String
>
serverList
=
new
ArrayList
<>();
for
(
Transfer
transfer
:
transferList
)
{
for
(
Transfer
transfer
:
transferList
)
{
serverList
.
add
(
transfer
.
getSocket
().
getInetAddress
().
serverList
.
add
(
transfer
.
getSocket
().
getInetAddress
().
getHostAddress
()
+
":"
+
transfer
.
getSocket
().
getPort
());
getHostAddress
()
+
":"
+
transfer
.
getSocket
().
getPort
());
}
}
return
serverList
;
return
serverList
;
}
}
...
...
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
dc3d3fd7
...
@@ -471,7 +471,8 @@ public class FullText {
...
@@ -471,7 +471,8 @@ public class FullText {
addColumnData
(
columns
,
data
,
expr
);
addColumnData
(
columns
,
data
,
expr
);
Object
[]
col
=
columns
.
toArray
();
Object
[]
col
=
columns
.
toArray
();
Object
[]
dat
=
data
.
toArray
();
Object
[]
dat
=
data
.
toArray
();
return
new
Object
[][]{
col
,
dat
};
Object
[][]
columnData
=
{
col
,
dat
};
return
columnData
;
}
}
/**
/**
...
...
h2/src/main/org/h2/index/PageBtreeNode.java
浏览文件 @
dc3d3fd7
...
@@ -607,4 +607,4 @@ public class PageBtreeNode extends PageBtree {
...
@@ -607,4 +607,4 @@ public class PageBtreeNode extends PageBtree {
throw
DbException
.
throwInternalError
(
oldPos
+
" "
+
newPos
);
throw
DbException
.
throwInternalError
(
oldPos
+
" "
+
newPos
);
}
}
}
}
\ No newline at end of file
h2/src/main/org/h2/jdbc/JdbcClob.java
浏览文件 @
dc3d3fd7
...
@@ -138,6 +138,7 @@ public class JdbcClob extends TraceObject implements NClob
...
@@ -138,6 +138,7 @@ public class JdbcClob extends TraceObject implements NClob
if
(
value
.
getPrecision
()
!=
0
)
{
if
(
value
.
getPrecision
()
!=
0
)
{
throw
DbException
.
getInvalidValueException
(
"length"
,
value
.
getPrecision
());
throw
DbException
.
getInvalidValueException
(
"length"
,
value
.
getPrecision
());
}
}
final
JdbcConnection
c
=
conn
;
// required to avoid synthetic method creation
// PipedReader / PipedWriter are a lot slower
// PipedReader / PipedWriter are a lot slower
// than PipedInputStream / PipedOutputStream
// than PipedInputStream / PipedOutputStream
// (Sun/Oracle Java 1.6.0_20)
// (Sun/Oracle Java 1.6.0_20)
...
@@ -145,7 +146,7 @@ public class JdbcClob extends TraceObject implements NClob
...
@@ -145,7 +146,7 @@ public class JdbcClob extends TraceObject implements NClob
final
Task
task
=
new
Task
()
{
final
Task
task
=
new
Task
()
{
@Override
@Override
public
void
call
()
{
public
void
call
()
{
value
=
c
onn
.
createClob
(
IOUtils
.
getReader
(
in
),
-
1
);
value
=
c
.
createClob
(
IOUtils
.
getReader
(
in
),
-
1
);
}
}
};
};
PipedOutputStream
out
=
new
PipedOutputStream
(
in
)
{
PipedOutputStream
out
=
new
PipedOutputStream
(
in
)
{
...
...
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
dc3d3fd7
...
@@ -146,7 +146,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements
...
@@ -146,7 +146,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements
String
tableType
;
String
tableType
;
if
(
types
!=
null
&&
types
.
length
>
0
)
{
if
(
types
!=
null
&&
types
.
length
>
0
)
{
StatementBuilder
buff
=
new
StatementBuilder
(
"TABLE_TYPE IN("
);
StatementBuilder
buff
=
new
StatementBuilder
(
"TABLE_TYPE IN("
);
for
(
String
type
:
types
)
{
for
(
String
ignored
:
types
)
{
buff
.
appendExceptFirst
(
", "
);
buff
.
appendExceptFirst
(
", "
);
buff
.
append
(
'?'
);
buff
.
append
(
'?'
);
}
}
...
...
h2/src/main/org/h2/mvstore/MVStore.java
浏览文件 @
dc3d3fd7
...
@@ -1408,7 +1408,10 @@ public final class MVStore {
...
@@ -1408,7 +1408,10 @@ public final class MVStore {
}
}
}
}
Chunk
r
=
retainChunk
;
Chunk
r
=
retainChunk
;
return
r
==
null
||
c
.
version
<=
r
.
version
;
if
(
r
!=
null
&&
c
.
version
>
r
.
version
)
{
return
false
;
}
return
true
;
}
}
private
long
getTimeSinceCreation
()
{
private
long
getTimeSinceCreation
()
{
...
@@ -2482,7 +2485,11 @@ public final class MVStore {
...
@@ -2482,7 +2485,11 @@ public final class MVStore {
// the last time
// the last time
boolean
fileOps
;
boolean
fileOps
;
long
fileOpCount
=
fileStore
.
getWriteCount
()
+
fileStore
.
getReadCount
();
long
fileOpCount
=
fileStore
.
getWriteCount
()
+
fileStore
.
getReadCount
();
fileOps
=
autoCompactLastFileOpCount
!=
fileOpCount
;
if
(
autoCompactLastFileOpCount
!=
fileOpCount
)
{
fileOps
=
true
;
}
else
{
fileOps
=
false
;
}
// use a lower fill rate if there were any file operations
// use a lower fill rate if there were any file operations
int
targetFillRate
=
fileOps
?
autoCompactFillRate
/
3
:
autoCompactFillRate
;
int
targetFillRate
=
fileOps
?
autoCompactFillRate
/
3
:
autoCompactFillRate
;
compact
(
targetFillRate
,
autoCommitMemory
);
compact
(
targetFillRate
,
autoCommitMemory
);
...
...
h2/src/main/org/h2/mvstore/db/MVTable.java
浏览文件 @
dc3d3fd7
...
@@ -736,10 +736,13 @@ public class MVTable extends TableBase {
...
@@ -736,10 +736,13 @@ public class MVTable extends TableBase {
DbException
de
=
DbException
.
convert
(
e
);
DbException
de
=
DbException
.
convert
(
e
);
if
(
de
.
getErrorCode
()
==
ErrorCode
.
DUPLICATE_KEY_1
)
{
if
(
de
.
getErrorCode
()
==
ErrorCode
.
DUPLICATE_KEY_1
)
{
for
(
Index
index
:
indexes
)
{
for
(
Index
index
:
indexes
)
{
if
(
index
.
getIndexType
().
isUnique
()
&&
index
instanceof
MultiVersionIndex
)
{
if
(
index
.
getIndexType
().
isUnique
()
&&
index
instanceof
MultiVersionIndex
)
{
MultiVersionIndex
mv
=
(
MultiVersionIndex
)
index
;
MultiVersionIndex
mv
=
(
MultiVersionIndex
)
index
;
if
(
mv
.
isUncommittedFromOtherSession
(
session
,
row
))
{
if
(
mv
.
isUncommittedFromOtherSession
(
session
,
row
))
{
throw
DbException
.
get
(
ErrorCode
.
CONCURRENT_UPDATE_1
,
index
.
getName
());
throw
DbException
.
get
(
ErrorCode
.
CONCURRENT_UPDATE_1
,
index
.
getName
());
}
}
}
}
}
}
...
...
h2/src/main/org/h2/table/Column.java
浏览文件 @
dc3d3fd7
...
@@ -777,7 +777,10 @@ public class Column {
...
@@ -777,7 +777,10 @@ public class Column {
if
(
defaultExpression
!=
null
&&
!
defaultExpression
.
isEverything
(
visitor
))
{
if
(
defaultExpression
!=
null
&&
!
defaultExpression
.
isEverything
(
visitor
))
{
return
false
;
return
false
;
}
}
return
checkConstraint
==
null
||
checkConstraint
.
isEverything
(
visitor
);
if
(
checkConstraint
!=
null
&&
!
checkConstraint
.
isEverything
(
visitor
))
{
return
false
;
}
return
true
;
}
}
public
boolean
isPrimaryKey
()
{
public
boolean
isPrimaryKey
()
{
...
@@ -830,7 +833,10 @@ public class Column {
...
@@ -830,7 +833,10 @@ public class Column {
if
(
isComputed
||
newColumn
.
isComputed
)
{
if
(
isComputed
||
newColumn
.
isComputed
)
{
return
false
;
return
false
;
}
}
return
onUpdateExpression
==
null
&&
newColumn
.
onUpdateExpression
==
null
;
if
(
onUpdateExpression
!=
null
||
newColumn
.
onUpdateExpression
!=
null
)
{
return
false
;
}
return
true
;
}
}
/**
/**
...
...
h2/src/main/org/h2/table/JoinBatch.java
浏览文件 @
dc3d3fd7
...
@@ -1118,8 +1118,8 @@ public final class JoinBatch {
...
@@ -1118,8 +1118,8 @@ public final class JoinBatch {
if
(
joinBatches
==
null
)
{
if
(
joinBatches
==
null
)
{
return
;
return
;
}
}
for
(
JoinBatch
joinBatch
e
:
joinBatches
)
{
for
(
JoinBatch
joinBatch
:
joinBatches
)
{
joinBatch
e
.
viewTopFutureCursor
=
null
;
joinBatch
.
viewTopFutureCursor
=
null
;
}
}
}
}
}
}
...
...
h2/src/main/org/h2/table/MetaTable.java
浏览文件 @
dc3d3fd7
...
@@ -714,7 +714,10 @@ public class MetaTable extends Table {
...
@@ -714,7 +714,10 @@ public class MetaTable extends Table {
if
(
indexFrom
!=
null
&&
db
.
compare
(
v
,
indexFrom
)
<
0
)
{
if
(
indexFrom
!=
null
&&
db
.
compare
(
v
,
indexFrom
)
<
0
)
{
return
false
;
return
false
;
}
}
return
indexTo
==
null
||
db
.
compare
(
v
,
indexTo
)
<=
0
;
if
(
indexTo
!=
null
&&
db
.
compare
(
v
,
indexTo
)
>
0
)
{
return
false
;
}
return
true
;
}
}
private
static
String
replaceNullWithEmpty
(
String
s
)
{
private
static
String
replaceNullWithEmpty
(
String
s
)
{
...
...
h2/src/main/org/h2/table/RegularTable.java
浏览文件 @
dc3d3fd7
...
@@ -143,7 +143,8 @@ public class RegularTable extends TableBase {
...
@@ -143,7 +143,8 @@ public class RegularTable extends TableBase {
if
(
index
.
getIndexType
().
isUnique
()
&&
index
instanceof
MultiVersionIndex
)
{
if
(
index
.
getIndexType
().
isUnique
()
&&
index
instanceof
MultiVersionIndex
)
{
MultiVersionIndex
mv
=
(
MultiVersionIndex
)
index
;
MultiVersionIndex
mv
=
(
MultiVersionIndex
)
index
;
if
(
mv
.
isUncommittedFromOtherSession
(
session
,
row
))
{
if
(
mv
.
isUncommittedFromOtherSession
(
session
,
row
))
{
throw
DbException
.
get
(
ErrorCode
.
CONCURRENT_UPDATE_1
,
index
.
getName
());
throw
DbException
.
get
(
ErrorCode
.
CONCURRENT_UPDATE_1
,
index
.
getName
());
}
}
}
}
}
}
...
...
h2/src/main/org/h2/table/Table.java
浏览文件 @
dc3d3fd7
...
@@ -583,7 +583,8 @@ public abstract class Table extends SchemaObjectBase {
...
@@ -583,7 +583,8 @@ public abstract class Table extends SchemaObjectBase {
if
(
columns
.
size
()
==
1
)
{
if
(
columns
.
size
()
==
1
)
{
constraintsToDrop
.
add
(
constraint
);
constraintsToDrop
.
add
(
constraint
);
}
else
{
}
else
{
throw
DbException
.
get
(
ErrorCode
.
COLUMN_IS_REFERENCED_1
,
constraint
.
getSQL
());
throw
DbException
.
get
(
ErrorCode
.
COLUMN_IS_REFERENCED_1
,
constraint
.
getSQL
());
}
}
}
}
}
}
...
@@ -602,7 +603,8 @@ public abstract class Table extends SchemaObjectBase {
...
@@ -602,7 +603,8 @@ public abstract class Table extends SchemaObjectBase {
if
(
index
.
getColumns
().
length
==
1
)
{
if
(
index
.
getColumns
().
length
==
1
)
{
indexesToDrop
.
add
(
index
);
indexesToDrop
.
add
(
index
);
}
else
{
}
else
{
throw
DbException
.
get
(
ErrorCode
.
COLUMN_IS_REFERENCED_1
,
index
.
getSQL
());
throw
DbException
.
get
(
ErrorCode
.
COLUMN_IS_REFERENCED_1
,
index
.
getSQL
());
}
}
}
}
}
}
...
...
h2/src/main/org/h2/table/TableView.java
浏览文件 @
dc3d3fd7
...
@@ -286,7 +286,11 @@ public class TableView extends Table {
...
@@ -286,7 +286,11 @@ public class TableView extends Table {
return
false
;
return
false
;
}
}
}
}
return
topQuery
==
null
||
topQuery
.
isEverything
(
ExpressionVisitor
.
QUERY_COMPARABLE_VISITOR
);
if
(
topQuery
!=
null
&&
!
topQuery
.
isEverything
(
ExpressionVisitor
.
QUERY_COMPARABLE_VISITOR
))
{
return
false
;
}
return
true
;
}
}
public
Query
getTopQuery
()
{
public
Query
getTopQuery
()
{
...
...
h2/src/main/org/h2/tools/SimpleResultSet.java
浏览文件 @
dc3d3fd7
...
@@ -613,7 +613,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData,
...
@@ -613,7 +613,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData,
*/
*/
@Override
@Override
public
Clob
getClob
(
int
columnIndex
)
throws
SQLException
{
public
Clob
getClob
(
int
columnIndex
)
throws
SQLException
{
return
(
Clob
)
get
(
columnIndex
);
Clob
c
=
(
Clob
)
get
(
columnIndex
);
return
c
==
null
?
null
:
c
;
}
}
/**
/**
...
...
h2/src/main/org/h2/value/CompareMode.java
浏览文件 @
dc3d3fd7
...
@@ -275,7 +275,10 @@ public class CompareMode {
...
@@ -275,7 +275,10 @@ public class CompareMode {
if
(
strength
!=
o
.
strength
)
{
if
(
strength
!=
o
.
strength
)
{
return
false
;
return
false
;
}
}
return
binaryUnsigned
==
o
.
binaryUnsigned
;
if
(
binaryUnsigned
!=
o
.
binaryUnsigned
)
{
return
false
;
}
return
true
;
}
}
@Override
@Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论