Skip to content

PreparedStatement.executeQuery does not mark the result set as requested #107

Closed

Description

@magnusp

LibsqlPreparedStatement.executeQuery calls assignResultSet(resultSet, false). LibsqlStatement.executeQuery passes true, which is the contract from #85.

With a prepared statement, ps.executeQuery(); ps.getResultSet() returns the same open result set. sqlite-jdbc throws because JDBC3PreparedStatement.executeQuery ends in getResultSet(), so a second request fails.

LibsqlStatementLifecycleTest covers only the plain Statement.

Expected:

  • Pass true in the prepared path.
  • Add the prepared statement case to the lifecycle tests.

Activity

  1. added
    bugSomething isn't working
    P2Normal priority: edge case, feature gap, or test/process improvement
    on Oct 22, 2026
  2. added a commit that references this issue on Oct 22, 2026
    c2038d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority: edge case, feature gap, or test/process improvementbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions