提交 5eca42ad 编写于 作者: J jurgen

Dumper fix

上级 fb7c59ad
......@@ -900,6 +900,17 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver
}
}
/*
// Try to restore old disabled files
if (downloadCandidates.isEmpty() && isFailed) {
for (DriverFileDescriptor file : files) {
if (file.isDisabled() && !file.isCustom() && file.isLocal()) {
file.setDisabled(false);
}
}
}
*/
if (!downloadCandidates.isEmpty()) {
final StringBuilder libNames = new StringBuilder();
for (DriverFileDescriptor lib : downloadCandidates) {
......
......@@ -101,10 +101,17 @@ public class JDBCDumper
} catch (Throwable e) {
e.printStackTrace();
}
if (schemas.isEmpty()) {
schemas.add("%");
}
if (schemas.isEmpty() && catalogs.size() == 1) {
try {
schemas = dumpResultSetAndReturn(catalog + " Schemas", metaData.getSchemas(), "TABLE_SCHEM");
} catch (Throwable e) {
e.printStackTrace();
}
}
if (schemas.isEmpty()) {
schemas.add("%");
}
for (final String schema : schemas) {
dumpResultSet("Tables of " + catalog + "." + schema, "", metaData.getTables(catalog, schema, "%", null),
new NestedFetcher() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册