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

Sequence comparison with "ALL" does not yield correct results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.2.1
    • 10.5.2.0, 10.6.1.0
    • SQL
    • None
    • Windows
    • High Value Fix
    • 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. d4001-1a-test.diff
          13 kB
          Knut Anders Hatlen
        2. d4001-2a-code.diff
          11 kB
          Knut Anders Hatlen
        3. dontFlatten.diff
          6 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: