mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
(fix)(headless) use database name as catalog when catalog is empty (#2291)
This commit is contained in:
@@ -282,6 +282,7 @@ public class DatabaseServiceImpl extends ServiceImpl<DatabaseDOMapper, DatabaseD
|
||||
public List<DBColumn> getColumns(Long id, String catalog, String db, String table)
|
||||
throws SQLException {
|
||||
DatabaseResp databaseResp = getDatabase(id);
|
||||
catalog = StringUtils.isEmpty(catalog) ? db : catalog;
|
||||
return getColumns(databaseResp, catalog, db, table);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user