Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
14c53dc0
Unverified
提交
14c53dc0
authored
3月 11, 2018
作者:
Noel Grandin
提交者:
GitHub
3月 11, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #958 from katzyn/pg_catalog
More fixes for PgServer
上级
f4755867
55c42f0b
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
20 行增加
和
14 行删除
+20
-14
Parser.java
h2/src/main/org/h2/command/Parser.java
+1
-1
Constants.java
h2/src/main/org/h2/engine/Constants.java
+5
-0
PgServer.java
h2/src/main/org/h2/server/pg/PgServer.java
+1
-1
PgServerThread.java
h2/src/main/org/h2/server/pg/PgServerThread.java
+2
-1
pg_catalog.sql
h2/src/main/org/h2/server/pg/pg_catalog.sql
+1
-1
TestShow.java
h2/src/test/org/h2/test/db/TestShow.java
+1
-1
Build.java
h2/src/tools/org/h2/build/Build.java
+9
-9
没有找到文件。
h2/src/main/org/h2/command/Parser.java
浏览文件 @
14c53dc0
...
...
@@ -992,7 +992,7 @@ public class Parser {
buff
.
append
(
"'ISO' AS DATESTYLE FROM DUAL"
);
}
else
if
(
readIf
(
"SERVER_VERSION"
))
{
// for PostgreSQL compatibility
buff
.
append
(
"'
8.1.4
' AS SERVER_VERSION FROM DUAL"
);
buff
.
append
(
"'
"
+
Constants
.
PG_VERSION
+
"
' AS SERVER_VERSION FROM DUAL"
);
}
else
if
(
readIf
(
"SERVER_ENCODING"
))
{
// for PostgreSQL compatibility
buff
.
append
(
"'UTF8' AS SERVER_ENCODING FROM DUAL"
);
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
14c53dc0
...
...
@@ -525,6 +525,11 @@ public class Constants {
*/
public
static
final
int
QUERY_STATISTICS_MAX_ENTRIES
=
100
;
/**
* Announced version for PgServer.
*/
public
static
final
String
PG_VERSION
=
"8.2.23"
;
private
Constants
()
{
// utility class
}
...
...
h2/src/main/org/h2/server/pg/PgServer.java
浏览文件 @
14c53dc0
...
...
@@ -392,7 +392,7 @@ public class PgServer implements Service {
* @return the server name and version
*/
public
static
String
getVersion
()
{
return
"PostgreSQL
8.1.4
server protocol using H2 "
+
return
"PostgreSQL
"
+
Constants
.
PG_VERSION
+
"
server protocol using H2 "
+
Constants
.
getFullVersion
();
}
...
...
h2/src/main/org/h2/server/pg/PgServerThread.java
浏览文件 @
14c53dc0
...
...
@@ -33,6 +33,7 @@ import java.util.Properties;
import
org.h2.command.CommandInterface
;
import
org.h2.engine.ConnectionInfo
;
import
org.h2.engine.Constants
;
import
org.h2.engine.SysProperties
;
import
org.h2.jdbc.JdbcConnection
;
import
org.h2.jdbc.JdbcPreparedStatement
;
...
...
@@ -949,7 +950,7 @@ public class PgServerThread implements Runnable {
sendParameterStatus
(
"integer_datetimes"
,
"off"
);
sendParameterStatus
(
"is_superuser"
,
"off"
);
sendParameterStatus
(
"server_encoding"
,
"SQL_ASCII"
);
sendParameterStatus
(
"server_version"
,
"8.1.4"
);
sendParameterStatus
(
"server_version"
,
Constants
.
PG_VERSION
);
sendParameterStatus
(
"session_authorization"
,
userName
);
sendParameterStatus
(
"standard_conforming_strings"
,
"off"
);
// TODO PostgreSQL TimeZone
...
...
h2/src/main/org/h2/server/pg/pg_catalog.sql
浏览文件 @
14c53dc0
...
...
@@ -4,7 +4,7 @@
* Initial Developer: H2 Group
*/
;
drop
schema
if
exists
pg_catalog
;
drop
schema
if
exists
pg_catalog
cascade
;
create
schema
pg_catalog
;
drop
alias
if
exists
pg_convertType
;
...
...
h2/src/test/org/h2/test/db/TestShow.java
浏览文件 @
14c53dc0
...
...
@@ -40,7 +40,7 @@ public class TestShow extends TestBase {
assertResult
(
"read committed"
,
stat
,
"SHOW DEFAULT_TRANSACTION_ISOLATION"
);
assertResult
(
"read committed"
,
stat
,
"SHOW TRANSACTION ISOLATION LEVEL"
);
assertResult
(
"ISO"
,
stat
,
"SHOW DATESTYLE"
);
assertResult
(
"8.
1.4
"
,
stat
,
"SHOW SERVER_VERSION"
);
assertResult
(
"8.
2.23
"
,
stat
,
"SHOW SERVER_VERSION"
);
assertResult
(
"UTF8"
,
stat
,
"SHOW SERVER_ENCODING"
);
}
}
...
...
h2/src/tools/org/h2/build/Build.java
浏览文件 @
14c53dc0
...
...
@@ -59,9 +59,9 @@ public class Build extends BuildBase {
downloadUsingMaven
(
"ext/derbynet-10.10.1.1.jar"
,
"org/apache/derby"
,
"derbynet"
,
"10.10.1.1"
,
"912b08dca73663d4665e09cd317be1218412d93e"
);
downloadUsingMaven
(
"ext/postgresql-
9.4.1209.jre6.jar
"
,
"org.postgresql"
,
"postgresql"
,
"
9.4.1209.jre6
"
,
"
2ed7a5a8c952d9ea18af92efea7e56ef854abfea
"
);
downloadUsingMaven
(
"ext/postgresql-
42.2.1.jre7
"
,
"org.postgresql"
,
"postgresql"
,
"
42.2.1.jre7
"
,
"
d06eb133d573240718fe4c24577ef086f7daad6c
"
);
downloadUsingMaven
(
"ext/mysql-connector-java-5.1.6.jar"
,
"mysql"
,
"mysql-connector-java"
,
"5.1.6"
,
"380ef5226de2c85ff3b38cbfefeea881c5fce09d"
);
...
...
@@ -74,7 +74,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/derby-10.10.1.1.jar"
+
File
.
pathSeparator
+
"ext/derbyclient-10.10.1.1.jar"
+
File
.
pathSeparator
+
"ext/derbynet-10.10.1.1.jar"
+
File
.
pathSeparator
+
"ext/postgresql-
9.4.1209.jre6.jar
"
+
File
.
pathSeparator
+
"ext/postgresql-
42.2.1.jre7
"
+
File
.
pathSeparator
+
"ext/mysql-connector-java-5.1.6.jar"
;
StringList
args
=
args
(
"-Xmx128m"
,
"-cp"
,
cp
,
"org.h2.test.bench.TestPerformance"
);
...
...
@@ -182,7 +182,7 @@ public class Build extends BuildBase {
// JaCoCo does not support multiple versions of the same classes
delete
(
files
(
"coverage/bin/META-INF/versions"
));
String
cp
=
"coverage/bin"
+
File
.
pathSeparator
+
"ext/postgresql-
9.4.1209.jre6.jar
"
+
File
.
pathSeparator
+
"ext/postgresql-
42.2.1.jre7
"
+
File
.
pathSeparator
+
"ext/servlet-api-3.1.0.jar"
+
File
.
pathSeparator
+
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/h2mig_pagestore_addon.jar"
+
...
...
@@ -427,9 +427,9 @@ public class Build extends BuildBase {
"com/h2database"
,
"h2"
,
"1.2.127"
,
"056e784c7cf009483366ab9cd8d21d02fe47031a"
);
// for TestPgServer
downloadUsingMaven
(
"ext/postgresql-
9.4.1209.jre6
.jar"
,
"org.postgresql"
,
"postgresql"
,
"
9.4.1209.jre6
"
,
"
2ed7a5a8c952d9ea18af92efea7e56ef854abfea
"
);
downloadUsingMaven
(
"ext/postgresql-
42.2.1.jre7
.jar"
,
"org.postgresql"
,
"postgresql"
,
"
42.2.1.jre7
"
,
"
d06eb133d573240718fe4c24577ef086f7daad6c
"
);
// for TestTraceSystem
downloadUsingMaven
(
"ext/slf4j-nop-1.6.0.jar"
,
"org/slf4j"
,
"slf4j-nop"
,
"1.6.0"
,
...
...
@@ -1012,7 +1012,7 @@ public class Build extends BuildBase {
private
void
test
(
boolean
travis
)
{
downloadTest
();
String
cp
=
"temp"
+
File
.
pathSeparator
+
"bin"
+
File
.
pathSeparator
+
"ext/postgresql-
9.4.1209.jre6
.jar"
+
File
.
pathSeparator
+
"ext/postgresql-
42.2.1.jre7
.jar"
+
File
.
pathSeparator
+
"ext/servlet-api-3.1.0.jar"
+
File
.
pathSeparator
+
"ext/lucene-core-3.6.2.jar"
+
File
.
pathSeparator
+
"ext/h2mig_pagestore_addon.jar"
+
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论