Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4469

Fix the CASTing behavior of UDTs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.6.1.0
    • SQL
    • None
    • Patch Available

    Description

      The actual behavior of UDTs, now under construction, does not conform to the spec. The spec says that you can't CAST to or from UDTs. This is probably too harsh. We should allow the following CAST

      cast ( null as udtType )

      I also think that we should allow at least the implicit casting of subtypes to supertypes since Java gives us the ability to discover the type graph. See Knut's comment on DERBY-651 on Dec 11, 2009.

      Attachments

        1. derby-4469-02-ab-illegalCasts.diff
          20 kB
          Richard N. Hillegas
        2. derby-4469-01-aa-castNullsAndUntypedParameters.diff
          10 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: