Skip to content

Commit

Permalink
clear code,delete no use empty judgment code. (#3690)
Browse files Browse the repository at this point in the history
* change TableMetaDataInitializer's getTables parameter error.

* clear code,delete no use empty judgment code.
  • Loading branch information
beijing-penguin authored and tristaZero committed Dec 9, 2019
1 parent 6dbf97d commit 8e985bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ private Collection<ShardingExecuteGroup<DataNode>> getDataNodeExecuteGroups(fina

private TableMetaData createTableMetaData(final Connection connection, final DataSourceMetaData dataSourceMetaData,
final String logicTableName, final String actualTableName, final String generateKeyColumnName, final EncryptRule encryptRule) throws SQLException {
String catalog = dataSourceMetaData == null ? null : dataSourceMetaData.getCatalog();
String schema = dataSourceMetaData == null ? null : dataSourceMetaData.getSchema();
String catalog = dataSourceMetaData.getCatalog();
String schema = dataSourceMetaData.getSchema();
if (isTableExist(connection, catalog, actualTableName)) {
return new TableMetaData(
getColumnMetaDataList(connection, catalog, logicTableName, actualTableName, generateKeyColumnName, encryptRule),
Expand Down

0 comments on commit 8e985bd

Please sign in to comment.