Skip to content

[JDBC-V2] RowBinary PreparedStatement .setObject() fails #3408

In review

Description

@chernser

I checked main (f9586ab) before I start. The change to the property is clear. But when the writer is the default, every simple INSERT ... VALUES (?, ...) of every jdbc-v2 user goes through WriterStatementImpl. That class has gaps that the SQL-text path (PreparedStatementImpl) does not have. I found these by code reading (not run):

Typed setObject fails. setObject(int, Object, int), setObject(int, Object, int, int) and the two SQLType overloads throw "This form of setObject is not supported yet" (:424-:448). Frameworks use these overloads a lot (for example Spring JdbcTemplate with SqlParameterValue).

Should be similar to PreparedStatementImpl

Activity

  1. chernser commented on Nov 24, 2026

    @chernser
    ContributorAuthor

    @polyglotAI-bot please fix this

  2. added this to the 0.12.0 milestone on Nov 24, 2026
  3. added
    jdbc-v2
    area:jdbc-insert
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:jdbc-insertjdbc-v2

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions