Github user patricker commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1547#discussion_r103548585
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryDatabaseTable.java
 ---
    @@ -437,7 +439,7 @@ public void processRow(ResultSet resultSet) throws 
IOException {
                     if (nrOfColumns > 0) {
                         for (int i = 1; i <= nrOfColumns; i++) {
                             String colName = 
meta.getColumnName(i).toLowerCase();
    -                        String fullyQualifiedMaxValueKey = 
getStateKey(meta.getTableName(i), colName);
    +                        String fullyQualifiedMaxValueKey = 
getStateKey(tableName, colName);
    --- End diff --
    
    I found a discussion on this from way back in 2007 where it sounded like it 
depended on which cursor type was used to bring back the results, and which 
column types were included.
    
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/55e8cbb2-b11c-446e-93ab-dc30658caf99/resultsetmetadatagettablename-returns-instead-of-table-name?forum=sqldataaccess



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to