Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-151

Implement null check with ResultSet#wasNull() to JdbcItemReader

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Final
    • 1.1.0.Beta1
    • jberet-support
    • None

      When JdbcItemReader is used with columnType property, we can't distinguish between actual null and default value on some column types such as Int.

      For example, when we set columnTypes=Int as a property of JdbcItemReader, ResultSet#getInt() will be invoked, and it returns 0 both case SQL NULL and 0. in such case we need to invoke ResultSet#wasNull() to investigate whether the last column read had a value of SQL NULL.

      Reproducer: https://github.com/lbtc-xxx/jberet-wasnull

            cfang@redhat.com Cheng Fang
            xkylex Kohei Nozaki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: