try
{
List<DbSourceProxy> sp = sfetch.getSourceProxy(selectedDb);
- if (sp == null || sp.size() != 1)
+ for (DbSourceProxy sourcep : sp)
+ {
+ if (sourcep.getTier() == 0)
+ {
+ database.selection = Arrays
+ .asList(new DbSourceProxy[] { sourcep });
+ break;
+ }
+ }
+ if (database.selection == null || database.selection.size() == 0)
{
System.err.println("Ignoring fetch parameter db='" + selectedDb
+ "'");
return false;
}
- database.selection = sp;
textArea.setText(queryString);
} catch (Exception q)
{