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

Sequence comparison with "ALL" does not yield correct results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.3.2.1
    • Fix Version/s: 10.5.2.0, 10.6.1.0
    • Component/s: SQL
    • Labels:
      None
    • Environment:
      Windows
    • Issue & fix info:
      High Value Fix
    • Bug behavior facts:
      Wrong query result

      Description

      A query involving "< ALL" does not yield the right results for decimal datatype. "< ANY" works, though.

      To reproduce the issue:

      % create table t1(col1 decimal(10,5));
      % insert into t1 values (-21483.64800);
      % insert into t1 values (74837.00000);
      % select col1 from t1 where col1 < ALL (select 0.0 from t1);

      The above yields no results whereas it should return the first row.

        Attachments

        1. dontFlatten.diff
          6 kB
          Knut Anders Hatlen
        2. d4001-2a-code.diff
          11 kB
          Knut Anders Hatlen
        3. d4001-1a-test.diff
          13 kB
          Knut Anders Hatlen

          Issue Links

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                viyer Venkateswaran Iyer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: