diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-08-02 11:58:24 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-08-02 12:07:45 +0200 |
commit | 94809ee4bf9b98769751aed4d1390ad12bcedc0a (patch) | |
tree | 1ee87b4bd162d68977e6c86bb5789c3ad98010f2 /wizards | |
parent | 5b85f6c1ef24b7189a78b64ebafd1679f090fd2b (diff) |
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
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/db/CommandName.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/db/CommandName.java b/wizards/com/sun/star/wizards/db/CommandName.java index 91b25e30f75a..2621b96e167b 100644 --- a/wizards/com/sun/star/wizards/db/CommandName.java +++ b/wizards/com/sun/star/wizards/db/CommandName.java @@ -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 { |