Skip to content

Add Settings.renderNullifEmptyStringForBindValues to emulate Oracle behaviour on other RDBMS #16483

@lukaseder

Description

@lukaseder

In Oracle, famously, '' IS NULL. jOOQ currently doesn't care about this and just passes along all empty strings or NULL to the JDBC driver directly.

If someone uses jOOQ (e.g. the parser) to migrate from Oracle to PostgreSQL, for example, then it would be useful for jOOQ to turn empty string bind values into NULL instead. A new Settings.bindEmptyStringAsNull flag would enable the feature for all String bind values.

Of course, with ordinary jOOQ usage, a custom Converter or Binding could be used, instead.

There are 2 ways to go about this:

Both are true / false flags, default being false


See also:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions