Skip to content

[JDBC-V2] RowBinaryWriter #3406

In review
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):

Values are silently lost. These setters have an empty body: setBytes (WriterStatementImpl.java:205), all setAsciiStream / setUnicodeStream / setBinaryStream / setCharacterStream / setNCharacterStream overloads (:226-:287), and setURL (:406). commitRow() then sees null: a Nullable column gets NULL, a column with a default gets the default, and other columns fail with "An attempt to write null into not nullable column".

Activity

  1. added this to the 0.12.0 milestone on Nov 24, 2026
  2. added
    jdbc-v2
    area:jdbc-insert
    on Nov 24, 2026
  3. chernser commented on Nov 24, 2026

    @chernser
    ContributorAuthor

    @polyglotAI-bot please fix this gaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:jdbc-insertbugjdbc-v2

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions