[
https://issues.apache.org/jira/browse/EMPIREDB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17808051#comment-17808051
]
Rainer Döbele commented on EMPIREDB-415:
----------------------------------------
OK, I understand. So basically in your case you expect the function to fail and
not to match a column.
However you might consider selecting your columns as qualified:
{{cmd.selectQualified(EMP.ID);}}
This should do what you originally wanted and add the table names to the column
name.
In this case the name would be "EMPLOYEE_ID" instead of just "ID"
Does that solve your problem?
> DataListEntry.hasField / DataListHead.getColumnIndex
> ----------------------------------------------------
>
> Key: EMPIREDB-415
> URL: https://issues.apache.org/jira/browse/EMPIREDB-415
> Project: Empire-DB
> Issue Type: Bug
> Components: Core
> Affects Versions: empire-db-3.1.0
> Reporter: Jan Glaubitz
> Priority: Major
>
> I am using the DataListEntry and want to perform some action on it. So I
> created a method that get a DataListEntry as parameter and want to check if I
> it contains the correct column I need to use.
> I did this by using DataListEntry.hasField. This method uses
> DataListHead.getColumnIndex:
> {code:java}
> // Not found, try by name
> return getColumnIndex(column.getName());
> {code}
> turns out: it just checks for the name of the column. So if you check for
> TABLE_X.ID it just checks for "ID".
> I think this is a bug...?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)