Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-4833

JdbcWriter and JdbcAsyncWriter may fail to write null fields to database

    XMLWordPrintableJSON

Details

    Description

      Both JdbcWriter and JdbcAsyncWriter end up calling the JDBC method PreparedStatement.setObject with a value of "null" if the pdx field contains "null".

      This will work with jdbc drivers that support sending "non-typed Null" to the backend database.

      But some drivers do not support this and these puts will fail with a SQLException.

      For portability the jdbc connector should be changed to not pass "null" to setObject without a type.

       

      Attachments

        Issue Links

          Activity

            People

              dschneider Darrel Schneider
              dschneider Darrel Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h