IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2006, 3:25:34 PM (20 years ago)
Author:
jhoblitt
Message:

limit -search to one result
minor code tiding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/detselect.c

    r9370 r9372  
    5252    psString query = psStringCopy(
    5353        "SELECT"
    54         " detNormalizedImfile.det_id,"
    55         " detNormalizedImfile.iteration,"
    56         " detNormalizedImfile.class_id"
     54        "   detNormalizedImfile.det_id,"
     55        "   detNormalizedImfile.iteration,"
     56        "   detNormalizedImfile.class_id"
    5757        " FROM detRun"
    5858        " JOIN detInputExp"
     
    7878        psFree(whereClause);
    7979    }
     80
     81    psStringAppend(&query, " LIMIT 1");
    8082
    8183    if (!p_psDBRunQuery(config->dbh, query)) {
     
    125127
    126128    psString query = psStringCopy(
    127         "SELECT detNormalizedImfile.*"
     129        "SELECT DISTINCT"
     130        "   detNormalizedImfile.*"
    128131        " FROM detNormalizedImfile"
    129132        " JOIN detRun"
Note: See TracChangeset for help on using the changeset viewer.