IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27199 for trunk


Ignore:
Timestamp:
Mar 4, 2010, 5:14:49 PM (16 years ago)
Author:
watersc1
Message:

This was marking exposures as fully done, even when they weren't. New revision corrects this (and is more fully tested than before).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/regtool_finishcompressexp.sql

    r27149 r27199  
    6767    magicked
    6868FROM
    69     (SELECT
    70         rawExp.*,
    71         count(rawImfile.class_id) AS complete,
    72         count(newImfile.tmp_class_id) AS total
    73         FROM rawExp
    74         JOIN newImfile
    75              ON rawExp.exp_id = newImfile.exp_id
    76         LEFT JOIN rawImfile
    77              ON rawExp.exp_id = rawImfile.exp_id
    78              AND rawImfile.tmp_class_id = newImfile.tmp_class_id
    79         WHERE
    80              ((rawExp.state = 'goto_compressed'
    81                AND rawImfile.data_state = 'compressed')OR
    82               (rawExp.state = 'goto_lossy'
    83                AND rawImfile.data_state = 'lossy'))
    84         GROUP BY
    85               rawExp.exp_id
    86       ) as foo
    87       WHERE (foo.complete = foo.total)
     69    (SELECT V.*,
     70     count(class_id) AS complete
     71     FROM
     72          (SELECT rawExp.*,count(newImfile.tmp_class_id) AS total
     73           FROM rawExp
     74           LEFT JOIN newImfile ON rawExp.exp_id = newImfile.exp_id
     75           WHERE (rawExp.state = 'goto_compressed' OR rawExp.state = 'goto_lossy')
     76           GROUP BY rawExp.exp_id) AS V
     77     JOIN rawImfile ON V.exp_id = rawImfile.exp_id
     78     WHERE ((V.state = 'goto_compressed' AND rawImfile.data_state = 'compressed') OR
     79            (V.state = 'goto_lossy' AND rawImfile.data_state = 'lossy'))
     80     GROUP BY V.exp_id) as foo
     81WHERE (foo.complete = foo.total)
    8882       
    89        
Note: See TracChangeset for help on using the changeset viewer.