mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support oceanbase dbtype
Signed-off-by: hongwei yi hongweiyi@hotmail.com 1. add oceanbase/oceanbase_oracle dbtype 2. update some dbtype recognition usages
This commit is contained in:
@@ -18,6 +18,7 @@ package com.alibaba.druid.sql.builder;
|
||||
import com.alibaba.druid.sql.ast.SQLExpr;
|
||||
import com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr;
|
||||
import com.alibaba.druid.util.JdbcConstants;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
/**
|
||||
* Created by wenshao on 09/07/2017.
|
||||
@@ -65,7 +66,7 @@ public class FunctionBuilder {
|
||||
return new SQLMethodInvokeExpr("coalesce", null, expr1, expr2);
|
||||
}
|
||||
|
||||
if (JdbcConstants.ORACLE.equals(dbType)) {
|
||||
if (JdbcUtils.isOracleDbType(dbType)) {
|
||||
return new SQLMethodInvokeExpr("nvl", null, expr1, expr2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user