forked from lxm_tools/screw
✨ 支持达梦数据库
This commit is contained in:
@@ -54,8 +54,8 @@ import dm.jdbc.driver.DmdbConnection;
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DmDataBaseQuery extends AbstractDatabaseQuery {
|
||||
private ConcurrentMap<String, List<DmTableModel>> tablesMap = new ConcurrentHashMap<>();
|
||||
private static String DM_QUERY_TABLE_SQL = ""
|
||||
private final ConcurrentMap<String, List<DmTableModel>> tablesMap = new ConcurrentHashMap<>();
|
||||
private static final String DM_QUERY_TABLE_SQL = ""
|
||||
+ "select "
|
||||
+ " ut.table_name TABLE_NAME, "
|
||||
+ " utc.comments COMMENTS "
|
||||
@@ -65,7 +65,8 @@ public class DmDataBaseQuery extends AbstractDatabaseQuery {
|
||||
+ "on "
|
||||
+ " ut.table_name=utc.table_name ";
|
||||
|
||||
private static String DM_QUERY_COLUMNS_SQL = "" + "select "
|
||||
private static final String DM_QUERY_COLUMNS_SQL = ""
|
||||
+ "select "
|
||||
+ " ut.table_name TABLE_NAME , "
|
||||
+ " uc.column_name COLUMN_NAME , "
|
||||
//+ " case uc.data_type when 'INT' then uc.data_type when 'CLOB' then uc.data_type when 'BLOB' then uc.data_type when 'INTEGER' then uc.data_type else concat(concat(concat(uc.data_type, '('), uc.data_length), ')') end case AS COLUMN_TYPE , "
|
||||
@@ -90,7 +91,7 @@ public class DmDataBaseQuery extends AbstractDatabaseQuery {
|
||||
+ " and uc.column_name=ucc.column_name "
|
||||
+ "where 1=1 ";
|
||||
|
||||
private static String DM_QUERY_PK_SQL = "" + "SELECT "
|
||||
private static final String DM_QUERY_PK_SQL = "" + "SELECT "
|
||||
+ "C.OWNER AS TABLE_SCHEM, "
|
||||
+ "C.TABLE_NAME , "
|
||||
+ "C.COLUMN_NAME , "
|
||||
|
||||
Reference in New Issue
Block a user