aws/amazon-neptune-jdbc-driver

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

PavloPolovyi opened this issue · 1 comments

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

Resolved in #246