Skip to content

jdbc: Support ResultSet.wasNull #179

Closed

Description

@nicktorwald

The method wasNull can be called to determine if the last value retrieved was a
SQL NULL in the database.

When the column value in the database is SQL NULL, it may be returned to the Java application as null, 0, or false, depending on the type of the column value. Column values that map to Java Object types are returned as a Java null; those that map to numeric types are returned as 0; those that map to a Java boolean are returned as false. Therefore, it may be necessary to call the wasNull method to determine whether the last value retrieved was a SQL NULL.

Activity

  1. added this to the JDBC MVP milestone on May 6, 2019
  2. added a commit that references this issue on May 9, 2019
    f00a843
  3. added 3 commits that reference this issue on May 20, 2019
    238e330
    3acf48c
    e0a1447
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions