aws / amazon-neptune-jdbc-driver

Amazon Neptune JDBC Driver by Amazon Web Services
https://aws.amazon.com/neptune/
Apache License 2.0
23 stars 13 forks source link

Recieve null instead of ResultSet after calling getResultSet on PreparedStatement[BUG] #235

Closed PavloPolovyi closed 10 months ago

PavloPolovyi commented 1 year ago

When executing cypher query(any) and using such a block of code to get ResultSet

PreparedStatement statement = connection.prepareStatement(query)
if(statement.execute())
            resultSet = statement.getResultSet();

receive null instead of expected resultSet, but if I check in the evaluator of IDE statement has a non-empty ResultSet.

If instead use

PreparedStatement statement = connection.prepareStatement(query)
ResultSet resultSet = statement.executeQuery();

resultSet is not empty and contains the expected result.

Platform: Windows 11 Java 8, driver 2.0.0-all

Cole-Greer commented 10 months ago

Resolved in #246