1. Taro L. Saito
  2. sqlite-jdbc
  3. Issues
Issue #95 new

PreparedStatement throws Exception when all parameters are unbound; If one parameter is bound, it doesn't throw errors, even if there's more than one bindable parameter

Yuri Niyazov
created an issue

This behaves as expected:

  1. Create a PreparedStatement with some question marks in the SQL to represent parameters

  2. Execute it

  3. receive Exception.

This doesn't behave as expected:

  1. Create a PreparedStatement with more than one question mark in the SQL to represent parameters.

  2. Bind the first parameter to some value

  3. execute the PreparedStatement

  4. It would make sense for this situation to throw an Exception as well, since not all parameters have been assigned. This does not happen.

Comments (2)

  1. Log in to comment