Kaydet (Commit) 9bd14249 authored tarafından Ocke Janssen [oj]'s avatar Ocke Janssen [oj]

dba33g: #i110535# add order with realname and table name

üst 50fbc789
......@@ -259,7 +259,17 @@ public class SDBCReportDataFactory implements DataSourceFactory
if (!expression.startsWith(quote) && columns.hasByName(expression))
{
expression = quote + expression + quote;
XPropertySet column;
try
{
column = UnoRuntime.queryInterface(XPropertySet.class, columns.getByName(expression));
expression = quote + column.getPropertyValue("TableName") + quote + "." + quote + expression + quote;
}
catch (Exception ex)
{
Logger.getLogger(SDBCReportDataFactory.class.getName()).log(Level.SEVERE, null, ex);
expression = quote + expression + quote;
}
}
expression = expression.trim(); // Trim away white spaces
......
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