Kaydet (Commit) eb39389d authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

reportbuilder: do not use empty tablename

Change-Id: I03ed5e810468ee206820a250c740b80c0ceda432
üst 60e9d2dd
...@@ -254,7 +254,15 @@ public class SDBCReportDataFactory implements DataSourceFactory ...@@ -254,7 +254,15 @@ public class SDBCReportDataFactory implements DataSourceFactory
try try
{ {
column = UnoRuntime.queryInterface(XPropertySet.class, columns.getByName(expression)); column = UnoRuntime.queryInterface(XPropertySet.class, columns.getByName(expression));
expression = quote + column.getPropertyValue("TableName") + quote + "." + quote + expression + quote; String prefix;
prefix = (String)column.getPropertyValue("TableName");
if (prefix == null)
prefix = "";
if (!prefix.isEmpty())
{
prefix = quote + prefix + quote + ".";
}
expression = prefix + quote + expression + quote;
} }
catch (Exception ex) catch (Exception ex)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment