!284 增加lealone数据库支持

Merge pull request !284 from chgz/main
This commit is contained in:
Michael Yang 2023-08-14 06:24:36 +00:00 committed by Gitee
commit 487a3300bb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 1 deletions

View File

@ -175,6 +175,11 @@ public enum DbType {
* greenplum
*/
GREENPLUM("greenplum", "greenplum 数据库"),
/**
* lealone
*/
LEALONE("lealone", "lealone 数据库"),
/**
* UNKNOWN DB
*/

View File

@ -167,7 +167,9 @@ public class DbTypeUtil {
return DbType.UXDB;
} else if (jdbcUrl.contains(":greenplum:")) {
return DbType.GREENPLUM;
} else {
} else if (jdbcUrl.contains(":lealone:")) {
return DbType.LEALONE;
} else {
return DbType.OTHER;
}
}

View File

@ -128,6 +128,7 @@ public class DialectFactory {
case REDSHIFT:
case OPENGAUSS:
case UXDB:
case LEALONE:
return new CommonsDialectImpl(KeywordWrap.DOUBLE_QUOTATION, LimitOffsetProcessor.POSTGRESQL);
case TDENGINE:
return new CommonsDialectImpl(KeywordWrap.BACK_QUOTE, LimitOffsetProcessor.POSTGRESQL);