Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6447349

QueryObjectGeneratorImpl.getAutoGeneratedKeys()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • cts_5.0
    • core-libs
    • None
    • generic
    • generic

      QueryObjectGeneratorImpl.getAutoGeneratedKeys() can generate a ClassCastExcedption as it does not validate that the datatype of the returned autogenerated key can be stored in the
      data type of the field of the DataSet.

      Example
      create a table using Derby with a identity column which is an Integer.

      Create the DataSet for the Autogenerated Keys to also be an Integer

      When you run a sample program which does this, you will get a ClassCastException back as Derby is returning a BigDecimal.

            ssharmasunw Sushmita Sharma (Inactive)
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: