Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@98329 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-02 17:21:38 +00:00
parent d2d1f05ff4
commit c058a0a034
1 changed files with 7 additions and 1 deletions

View File

@ -441,7 +441,13 @@ public class C_ExpressionParser {
protected Expression getTypedColumnReference(C_Expression exp) {
C_TypedColumnReference c = (C_TypedColumnReference) exp;
TableId tableId = new TableId(Long.valueOf(c.getTrId().getTableId()));
String tableIdS=null;
if(c.getTrId().isViewTable()){
tableIdS=c.getTrId().getReferenceTargetTableId();
} else {
tableIdS=c.getTrId().getTableId();
}
TableId tableId = new TableId(Long.valueOf(tableIdS));
ColumnLocalId columnId = new ColumnLocalId(c.getColumnId());
TypedColumnReference ref = new TypedColumnReference(tableId, columnId,