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

Allow derived column lists in MERGE statements.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.11.1.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None
    • Urgency:
      Normal

      Description

      Derby does not allow derived column lists aliased to the source or target tables in MERGE statement. So, the following statements are not allowed:

      merge into t1_036 r( x )
      using t2_036 on r.x = t2_036.a
      when matched then delete;
      
      merge into t1_036
      using t2_036 r( x ) on t1_036.a = r.x
      when matched then delete;
      

      Problems with these derived column lists were noted by Knut in a 2014-02-07 comment on DERBY-3155.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhillegas Richard N. Hillegas
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: