Skip to content

Commit 17c2dbc

Browse files
committed
add: DB.KINGBASE for print Database info
1 parent a665c7a commit 17c2dbc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/org/nutz/dao/DB.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public enum DB {
6363
* TDengine
6464
*/
6565
TDENGINE,
66+
/**
67+
* Kingbase
68+
*/
69+
KINGBASE,
6670
/**
6771
* 其他数据库
6872
*/

src/org/nutz/dao/DatabaseMeta.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public void setProductName(String productName) {
5555
type = DB.HSQL;
5656
} else if (proName.contains("derby")) {
5757
type = DB.DERBY;
58+
} else if (proName.contains("kingbase")) {
59+
type = DB.KINGBASE;
5860
} else if (proName.contains("gbase")) {
5961
type = DB.GBASE;
6062
} else if (proName.contains("sysbase")) {

0 commit comments

Comments
 (0)