Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1.3.3, 10.2.2.0, 10.3.3.1, 10.4.2.1, 10.5.3.1, 10.6.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      The following query shows the error using the Derby demo toursDB:
      SELECT FLIGHT_ID , SEGMENT_NUMBER , ARRIVE_TIME
      FROM (
      (SELECT HW.FLIGHT_ID , HW.SEGMENT_NUMBER , HW.ARRIVE_TIME FROM FLIGHTS HW)
      UNION
      (SELECT SW.FLIGHT_ID , SW.SEGMENT_NUMBER , SW.ARRIVE_TIME FROM FLIGHTS SW)
      ) SRC;
      ERROR 42X01: Syntax error: Encountered "UNION" at line 4, column 12.

      The following query works:
      SELECT FLIGHT_ID , SEGMENT_NUMBER , ARRIVE_TIME
      FROM (
      SELECT HW.FLIGHT_ID , HW.SEGMENT_NUMBER , HW.ARRIVE_TIME FROM FLIGHTS HW
      UNION
      SELECT SW.FLIGHT_ID , SW.SEGMENT_NUMBER , SW.ARRIVE_TIME FROM FLIGHTS SW
      ) SRC;

        Activity

        Gavin made changes -
        Workflow jira [ 12398174 ] Default workflow, editable Closed status [ 12801519 ]
        Kathey Marsden made changes -
        Labels derby_triage10_5_2
        Mamta A. Satoor made changes -
        Mamta A. Satoor made changes -
        Affects Version/s 10.6.0.0 [ 12313727 ]
        Mamta A. Satoor made changes -
        Affects Version/s 10.3.3.1 [ 12313143 ]
        Affects Version/s 10.4.2.1 [ 12313401 ]
        Affects Version/s 10.5.3.1 [ 12314182 ]
        Mamta A. Satoor made changes -
        Affects Version/s 10.1.3.3 [ 12313478 ]
        Rick Hillegas made changes -
        Issue & fix info [Repro attached]
        Mike Matrigali made changes -
        Field Original Value New Value
        Component/s SQL [ 11408 ]
        Kenneth Gee created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Kenneth Gee
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development