Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
8de80049
提交
8de80049
authored
7月 28, 2015
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
H2 Console: improved IBM DB2 compatibility.
上级
d801bd5c
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
5 行删除
+29
-5
changelog.html
h2/src/docsrc/html/changelog.html
+2
-0
DbContents.java
h2/src/main/org/h2/bnf/context/DbContents.java
+18
-1
WebApp.java
h2/src/main/org/h2/server/web/WebApp.java
+4
-2
WebServer.java
h2/src/main/org/h2/server/web/WebServer.java
+1
-1
JdbcUtils.java
h2/src/main/org/h2/util/JdbcUtils.java
+1
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+3
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
8de80049
...
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
H2 Console: improved IBM DB2 compatibility.
</li>
<li>
A thread deadlock detector (disabled by default) can help
detect and analyze Java level deadlocks.
To enable, set the system property "h2.threadDeadlockDetector" to true.
...
...
h2/src/main/org/h2/bnf/context/DbContents.java
浏览文件 @
8de80049
...
...
@@ -33,6 +33,7 @@ public class DbContents {
private
boolean
isMySQL
;
private
boolean
isFirebird
;
private
boolean
isMSSQLServer
;
private
boolean
isDB2
;
/**
* @return The default schema.
...
...
@@ -104,6 +105,13 @@ public class DbContents {
return
isSQLite
;
}
/**
* @return True if this is an IBM DB2 database.
*/
public
boolean
isDB2
()
{
return
isDB2
;
}
/**
* @return The list of schemas.
*/
...
...
@@ -133,6 +141,7 @@ public class DbContents {
rs
.
close
();
prep
.
close
();
}
isDB2
=
url
.
startsWith
(
"jdbc:db2:"
);
isSQLite
=
url
.
startsWith
(
"jdbc:sqlite:"
);
isOracle
=
url
.
startsWith
(
"jdbc:oracle:"
);
// the Vertica engine is based on PostgreSQL
...
...
@@ -158,7 +167,7 @@ public class DbContents {
String
[]
tableTypes
=
{
"TABLE"
,
"SYSTEM TABLE"
,
"VIEW"
,
"SYSTEM VIEW"
,
"TABLE LINK"
,
"SYNONYM"
,
"EXTERNAL"
};
schema
.
readTables
(
meta
,
tableTypes
);
if
(!
isPostgreSQL
)
{
if
(!
isPostgreSQL
&&
!
isDB2
)
{
schema
.
readProcedures
(
meta
);
}
}
...
...
@@ -202,6 +211,14 @@ public class DbContents {
"db_backupoperator"
,
"db_datareader"
,
"db_datawriter"
,
"db_ddladmin"
,
"db_denydatareader"
,
"db_denydatawriter"
,
"db_owner"
,
"db_securityadmin"
};
}
else
if
(
isDB2
)
{
ignoreNames
=
new
String
[]
{
"NULLID"
,
"SYSFUN"
,
"SYSIBMINTERNAL"
,
"SYSIBMTS"
,
"SYSPROC"
,
"SYSPUBLIC"
,
// not empty, but not sure what they contain
"SYSCAT"
,
"SYSIBM"
,
"SYSIBMADM"
,
"SYSSTAT"
,
"SYSTOOLS"
,
};
}
if
(
ignoreNames
!=
null
)
{
for
(
String
ignore
:
ignoreNames
)
{
...
...
h2/src/main/org/h2/server/web/WebApp.java
浏览文件 @
8de80049
...
...
@@ -1692,8 +1692,10 @@ public class WebApp {
}
boolean
isUpdatable
=
false
;
try
{
if
(!
session
.
getContents
().
isDB2
())
{
isUpdatable
=
rs
.
getConcurrency
()
==
ResultSet
.
CONCUR_UPDATABLE
&&
rs
.
getType
()
!=
ResultSet
.
TYPE_FORWARD_ONLY
;
}
}
catch
(
NullPointerException
e
)
{
// ignore
// workaround for a JDBC-ODBC bridge problem
...
...
h2/src/main/org/h2/server/web/WebServer.java
浏览文件 @
8de80049
...
...
@@ -80,7 +80,7 @@ public class WebServer implements Service {
"jdbc:firebirdsql:localhost:c:/temp/firebird/test|sysdba"
,
"Generic SQLite|org.sqlite.JDBC|"
+
"jdbc:sqlite:test|sa"
,
"Generic DB2|
COM.ibm.db2.jdbc.net
.DB2Driver|"
+
"Generic DB2|
com.ibm.db2.jcc
.DB2Driver|"
+
"jdbc:db2://localhost/test|"
,
"Generic Oracle|oracle.jdbc.driver.OracleDriver|"
+
"jdbc:oracle:thin:@localhost:1521:XE|sa"
,
...
...
h2/src/main/org/h2/util/JdbcUtils.java
浏览文件 @
8de80049
...
...
@@ -45,7 +45,7 @@ public class JdbcUtils {
"Cache:"
,
"com.intersys.jdbc.CacheDriver"
,
"daffodilDB://"
,
"in.co.daffodil.db.rmi.RmiDaffodilDBDriver"
,
"daffodil"
,
"in.co.daffodil.db.jdbc.DaffodilDBDriver"
,
"db2:"
,
"
COM.ibm.db2.jdbc.net
.DB2Driver"
,
"db2:"
,
"
com.ibm.db2.jcc
.DB2Driver"
,
"derby:net:"
,
"org.apache.derby.jdbc.ClientDriver"
,
"derby://"
,
"org.apache.derby.jdbc.ClientDriver"
,
"derby:"
,
"org.apache.derby.jdbc.EmbeddedDriver"
,
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
8de80049
...
...
@@ -775,3 +775,6 @@ unrecognized five omitting registering demo bson golomb bocher erwan
huff frequencies freq frequency divisors asymmetric ideal nth prob ans
bradmesserle dan incorporated keegan industries tagtraum cyr israels rafel
dance schedule hitting reverted youngest footers inliner deadlocked reorder nger
nullid syspublic sysibmts sysibminternal syscat sysfun sysstat systools sysibmadm
sysproc jcc expecting
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论