You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Toivo Adams (JIRA)" <ji...@apache.org> on 2016/10/19 11:14:59 UTC
[jira] [Commented] (NIFI-2918) JDBC getColumnName may return empty
string
[ https://issues.apache.org/jira/browse/NIFI-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15588458#comment-15588458 ]
Toivo Adams commented on NIFI-2918:
-----------------------------------
Hi,
I don't want to argue with SAP.
But maybe we should preserve current behavior?
I mean we still use getColumnName()
and when return value is null or empty String we try getColumnLabel()
I am not sure how other vendors use getColumnLabel()
Thanks
Toivo
> JDBC getColumnName may return empty string
> ------------------------------------------
>
> Key: NIFI-2918
> URL: https://issues.apache.org/jira/browse/NIFI-2918
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.1.0
> Reporter: Peter Wicks
> Assignee: Peter Wicks
>
> The SAP Hana JDBC Driver returns an empty string for getColumnName if the column name in the SELECT statement was aliased.
> Instead you have to call getColumnLabel on the ResultSetMetaData.
> SAP as a company feels this is per the JDBC spec, so they are not going to change it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)