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

Generation clauses which mention user-coded functions may produce different resuls depending on who performs the triggering INSERT/UPDATE

    XMLWordPrintableJSON

Details

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

    Description

      This is similar to DERBY-3944. The compiler uses the current schema in order to resolve unqualifed function names when preparing INSERT/UPDATE statement. This means that a generation clause may evaluate differently depending on who invokes the triggering INSERT/UPDATE statement. This violates the requirement that generation clause should be deterministic (see part 2 of the ANSI/ISO standard, section 4.16.

      Hopefully, the same patch will fix both DERBY-3944 and this issue.

      Attachments

        1. zz.sql
          1.0 kB
          Richard N. Hillegas
        2. derby-3945-01-aa-functionSchema.diff
          12 kB
          Richard N. Hillegas
        3. derby-3945-02-aa-javadoc.diff
          0.7 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: