Hi, for English only, can you translate to English?

------------------

Liang Zhang (John)
Apache ShardingSphere & Dubbo


占 小勇 <[email protected]> 于2020年1月10日周五 下午12:30写道:

>
> 只用到 masterslavedatasource的时候 建议不要强制数据库类型一致
>
> protected final DatabaseType getDatabaseType(final Collection<DataSource>
> dataSources) throws SQLException {
>         DatabaseType result = null;
>         for (DataSource each : dataSources) {
>             DatabaseType databaseType = getDatabaseType(each);
>             Preconditions.checkState(null == result ||
> result.equals(databaseType), String.format("Database type inconsistent with
> '%s' and '%s'", result, databaseType));
>             result = databaseType;
>         }
>         return result;
> }
>
>
>
>
>
>
>
> 发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
>
>

Reply via email to