Derby
  1. Derby
  2. DERBY-1837

Select from a derived table does not return the aliased column names in some cases

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1
    • Fix Version/s: None
    • Component/s: Tools
    • Environment:
      Any
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      A select from a derived table does not return the aliased column names correctly if the selected column(s) are char(1). The column names
      show up as '&' in the following example:

      ij> select * from (values('a','a')) as a(c1,c2);
      &|&

      a|a

      1 row selected
      ij> select * from (values('a','aa')) as a(c1,c2);
      &|C2


      a|aa

      1 row selected
      ij> select * from (values('aaa','a')) as a(c1,c2);
      C1 |&


      aaa|a

      1 row selected
      ij> select * from (values(1,'a')) as a(c1,c2);
      C1 |&
      -------------
      1 |a

      1 row selected

        Activity

        Rajesh Kartha created issue -
        Daniel John Debrunner made changes -
        Field Original Value New Value
        Component/s Tools [ 11414 ]
        Component/s SQL [ 11408 ]
        Knut Anders Hatlen made changes -
        Urgency Normal
        Issue & fix info [Repro attached]
        Kathey Marsden made changes -
        Labels derby_triage10_5_2
        Gavin made changes -
        Workflow jira [ 12383307 ] Default workflow, editable Closed status [ 12797554 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Rajesh Kartha
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development