Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e4440728
提交
e4440728
authored
8 年前
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issue #387: H2 MSSQL Compatibility Mode - Support uniqueidentifier
上级
eb2fc137
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
changelog.html
h2/src/docsrc/html/changelog.html
+2
-0
DataType.java
h2/src/main/org/h2/value/DataType.java
+2
-2
TestCompatibility.java
h2/src/test/org/h2/test/db/TestCompatibility.java
+3
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
e4440728
...
@@ -21,6 +21,8 @@ Change Log
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul>
<ul>
<li>
Issue #387: H2 MSSQL Compatibility Mode - Support uniqueidentifier
</li>
<li>
Issue #401: NPE in "SELECT DISTINCT * ORDER BY"
<li>
Issue #401: NPE in "SELECT DISTINCT * ORDER BY"
</li>
</li>
<li>
Added BITGET function
<li>
Added BITGET function
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/value/DataType.java
浏览文件 @
e4440728
...
@@ -23,7 +23,6 @@ import java.sql.Types;
...
@@ -23,7 +23,6 @@ import java.sql.Types;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.UUID
;
import
java.util.UUID
;
import
org.h2.api.ErrorCode
;
import
org.h2.api.ErrorCode
;
import
org.h2.api.TimestampWithTimeZone
;
import
org.h2.api.TimestampWithTimeZone
;
import
org.h2.engine.Constants
;
import
org.h2.engine.Constants
;
...
@@ -339,7 +338,8 @@ public class DataType {
...
@@ -339,7 +338,8 @@ public class DataType {
);
);
add
(
Value
.
UUID
,
Types
.
BINARY
,
"Bytes"
,
add
(
Value
.
UUID
,
Types
.
BINARY
,
"Bytes"
,
createString
(
false
),
createString
(
false
),
new
String
[]{
"UUID"
},
// UNIQUEIDENTIFIER is the MSSQL mode equivalent
new
String
[]{
"UUID"
,
"UNIQUEIDENTIFIER"
},
32
32
);
);
add
(
Value
.
JAVA_OBJECT
,
Types
.
OTHER
,
"Object"
,
add
(
Value
.
JAVA_OBJECT
,
Types
.
OTHER
,
"Object"
,
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/db/TestCompatibility.java
浏览文件 @
e4440728
...
@@ -411,6 +411,9 @@ public class TestCompatibility extends TestBase {
...
@@ -411,6 +411,9 @@ public class TestCompatibility extends TestBase {
// make sure we're ignoring the index part of the statement
// make sure we're ignoring the index part of the statement
rs
=
stat
.
executeQuery
(
"select * from test (index table1_index)"
);
rs
=
stat
.
executeQuery
(
"select * from test (index table1_index)"
);
rs
.
close
();
rs
.
close
();
// UNIQUEIDENTIFIER is MSSQL's equivalent of UUID
stat
.
execute
(
"create table test3 (id UNIQUEIDENTIFIER)"
);
}
}
private
void
testDB2
()
throws
SQLException
{
private
void
testDB2
()
throws
SQLException
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论