Skip to content

Commit

Permalink
add: DB.KINGBASE for print Database info
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Jun 8, 2023
1 parent a665c7a commit 17c2dbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/nutz/dao/DB.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public enum DB {
* TDengine
*/
TDENGINE,
/**
* Kingbase
*/
KINGBASE,
/**
* 其他数据库
*/
Expand Down
2 changes: 2 additions & 0 deletions src/org/nutz/dao/DatabaseMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public void setProductName(String productName) {
type = DB.HSQL;
} else if (proName.contains("derby")) {
type = DB.DERBY;
} else if (proName.contains("kingbase")) {
type = DB.KINGBASE;
} else if (proName.contains("gbase")) {
type = DB.GBASE;
} else if (proName.contains("sysbase")) {
Expand Down

0 comments on commit 17c2dbc

Please sign in to comment.