summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-08-02 11:58:24 +0200
committerNoel Power <noel.power@novell.com>2012-08-02 12:08:03 +0100
commit36f8fb4b4b716577142b8855cece13b699d0559a (patch)
tree574cec9ec37fe7870c8233e2cd8c54e090989878 /wizards
parent11cfa8bd5fb734ce3d2ee3b9370745fc8ad5c7f9 (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.java11
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 09b4eec28c8b..f2a4b6b40233 100644
--- a/wizards/com/sun/star/wizards/db/CommandName.java
+++ b/wizards/com/sun/star/wizards/db/CommandName.java
@@ -117,8 +117,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
{