handle "no schema" case

This is especially the case when the source is a (saved) query.
Fixes: Report Builder wizard "Finish" button does nothing -> cannot create report through wizard

Change-Id: I266772035435a7c623beb0c0f66fc88e6316be8e
This commit is contained in:
Lionel Elie Mamane
2012-08-02 11:58:24 +02:00
parent 5b85f6c1ef
commit 94809ee4bf

View File

@@ -108,8 +108,15 @@ public class CommandName
String[] NameList;
NameList = new String[0];
NameList = JavaTools.ArrayoutofString(_DisplayName, ".");
SchemaName = NameList[0];
TableName = NameList[1]; // TODO Was ist mit diesem Fall: CatalogSep = "." und CatalogName = PropertyNames.EMPTY_STRING
if (NameList.length > 1)
{
SchemaName = NameList[0];
TableName = NameList[1];
}
else
{
TableName = _DisplayName;
}
}
else
{