[
https://issues.apache.org/jira/browse/NIFI-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592279#comment-15592279
]
ASF GitHub Bot commented on NIFI-2918:
--------------------------------------
GitHub user patricker opened a pull request:
https://github.com/apache/nifi/pull/1149
NIFI-2918 JDBC getColumnName may return empty string
### For all changes:
- [x ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [x ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA
number you are trying to resolve? Pay particular attention to the hyphen "-"
character.
- [ x] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [ x] Is your initial contribution a single, squashed commit?
### For code changes:
- [ ] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [x ] Have you written or updated unit tests to verify your changes?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/patricker/nifi NIFI-2918
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/1149.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1149
----
commit 9569e91adceac17d7c790605f85b0db0679d4508
Author: patricker <[email protected]>
Date: 2016-10-20T15:56:22Z
NIFI-2918 JDBC getColumnName may return empty string
----
> 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)