[jira] [Commented] (IGNITE-3389) metadata result set throws NPE when closed
[ https://issues.apache.org/jira/browse/IGNITE-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15389816#comment-15389816 ] Andrey Gura commented on IGNITE-3389: - LGTM. Thanks. Merged to master branch. > metadata result set throws NPE when closed > -- > > Key: IGNITE-3389 > URL: https://issues.apache.org/jira/browse/IGNITE-3389 > Project: Ignite > Issue Type: Bug > Components: clients, odbc, SQL >Affects Versions: 1.6, 1.7 >Reporter: Alexandre Boudnik >Assignee: Andrey Gura > Labels: easyfix > Fix For: 1.7 > > Original Estimate: 2h > Remaining Estimate: 2h > > Need to handle when ResultSet has no cursor. It happened only with client > JDBC. This code throws NPE: > {code} > public void testMetadataResultSetClose() throws Exception { > try (Connection conn = DriverManager.getConnection(BASE_URL)) { > try (ResultSet tables = conn.getMetaData().getTables(null, null, > "%", null)) { > int columnCount = tables.getMetaData().getColumnCount(); > while (tables.next()) > for (int i = 0; i < columnCount; i++) > tables.getObject(i + 1); > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (IGNITE-3389) metadata result set throws NPE when closed
[ https://issues.apache.org/jira/browse/IGNITE-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15376376#comment-15376376 ] Denis Magda commented on IGNITE-3389: - [~agura], please review the changes. We want them to be committed in the nearest release. Refer to the discussion on the dev list under "Apache Ignite - New Release" title. > metadata result set throws NPE when closed > -- > > Key: IGNITE-3389 > URL: https://issues.apache.org/jira/browse/IGNITE-3389 > Project: Ignite > Issue Type: Bug > Components: clients, odbc, SQL >Affects Versions: 1.6, 1.7 >Reporter: Alexandre Boudnik >Assignee: Alexandre Boudnik > Labels: easyfix > Fix For: 1.7 > > Original Estimate: 2h > Remaining Estimate: 2h > > Need to handle when ResultSet has no cursor. It happened only with client > JDBC. This code throws NPE: > {code} > public void testMetadataResultSetClose() throws Exception { > try (Connection conn = DriverManager.getConnection(BASE_URL)) { > try (ResultSet tables = conn.getMetaData().getTables(null, null, > "%", null)) { > int columnCount = tables.getMetaData().getColumnCount(); > while (tables.next()) > for (int i = 0; i < columnCount; i++) > tables.getObject(i + 1); > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (IGNITE-3389) metadata result set throws NPE when closed
[ https://issues.apache.org/jira/browse/IGNITE-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15353499#comment-15353499 ] ASF GitHub Bot commented on IGNITE-3389: GitHub user aboudnik opened a pull request: https://github.com/apache/ignite/pull/838 IGNITE-3389 metadata result set throws NPE when closed - fixed You can merge this pull request into a Git repository by running: $ git pull https://github.com/aboudnik/ignite IGNITE-3389 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/838.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 #838 commit 43de601a31d44ed56b88b63e212287201db86902 Author: Alexandre BoudnikDate: 2016-06-28T18:29:09Z IGNITE-3389 metadata result set throws NPE when closed - fixed > metadata result set throws NPE when closed > -- > > Key: IGNITE-3389 > URL: https://issues.apache.org/jira/browse/IGNITE-3389 > Project: Ignite > Issue Type: Bug > Components: clients, odbc, SQL >Affects Versions: 1.6, 1.7 >Reporter: Alexandre Boudnik >Assignee: Alexandre Boudnik > Labels: easyfix > Fix For: 1.7 > > Original Estimate: 2h > Remaining Estimate: 2h > > Need to handle when ResultSet has no cursor. It happened only with client > JDBC. This code throws NPE: > {code} > public void testMetadataResultSetClose() throws Exception { > try (Connection conn = DriverManager.getConnection(BASE_URL)) { > try (ResultSet tables = conn.getMetaData().getTables(null, null, > "%", null)) { > int columnCount = tables.getMetaData().getColumnCount(); > while (tables.next()) > for (int i = 0; i < columnCount; i++) > tables.getObject(i + 1); > } > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)