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

JDBC connector does not handle java.util.Date

    XMLWordPrintableJSON

Details

    Description

      Pdx types can have java.util.Date fields or object fields that contain java.util.Date.

      When these are written that java.util.Date may cause a failure from the jdbc driver if it does not support java.util.Date. Jdbc drivers must support java.sql.Date, java.sql.Time, and java.sql.Timestamp but may not support java.util.Date.

      The JDBC connector should convert java.util.Date to one of the java.sql interfaces using the data type of the column to determine which one to convert it to.

      When reading from jdbc back into geode if the pdx field is java.util.Date then we should convert the java.sql.* instance to java.util.Date. It is also possible we should do this conversion if the pdx field is of type object.

       

      Attachments

        Issue Links

          Activity

            People

              dschneider Darrel Schneider
              dschneider Darrel Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m