[
https://issues.apache.org/jira/browse/METAMODEL-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206074#comment-14206074
]
Kasper Sørensen commented on METAMODEL-95:
------------------------------------------
Ouch, that's a bad bug ... I'll up the priority and post a review request with
your fix. Looks good to me.
> Salesforce - Query for column of type double always return value 1
> ------------------------------------------------------------------
>
> Key: METAMODEL-95
> URL: https://issues.apache.org/jira/browse/METAMODEL-95
> Project: Metamodel
> Issue Type: Bug
> Affects Versions: 4.2.0-incubating
> Reporter: Harel E.
>
> I performed a query for a table, which contains columns of type double.
> The result for these columns was always 1, regardless of the actual value.
> I verified the actual value by using Salesforce developer console.
> I tracked the bug to SalesforceDataSet:111
> if (columnType.isNumber()) {
> return NumberComparator.toNumber(columnType.isNumber());
> }
> should be:
> if (columnType.isNumber()) {
> return NumberComparator.toNumber(value);
> }
> Another option for a fix is to use the ColumnType.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)