[#1249] Add breakpoint capability to jOOQ Console -

breakpoint contextual editor works with missing database descriptor.
This commit is contained in:
Chrriis 2012-05-12 20:40:20 +02:00
parent aa08d17623
commit b4e31a68ef

View File

@ -234,6 +234,9 @@ public class LocalDebugger implements Debugger {
}
private String[] getTableNames() {
if(databaseDescriptor == null) {
return new String[0];
}
List<Table<?>> tableList = databaseDescriptor.getSchema().getTables();
List<String> tableNameList = new ArrayList<String>();
for(Table<? extends Record> table: tableList) {
@ -245,6 +248,9 @@ public class LocalDebugger implements Debugger {
}
private String[] getTableColumnNames() {
if(databaseDescriptor == null) {
return new String[0];
}
Set<String> columnNameSet = new HashSet<String>();
for(Table<?> table: databaseDescriptor.getSchema().getTables()) {
for(Field<?> field: table.getFields()) {