IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 19, 2010, 3:12:12 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Script slightly modified so now both UNRESTRICTED and GROUP are supported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/scripts/generate

    r28969 r29485  
    227227        }
    228228
     229        # fill in GROUP BY
     230        if ($line =~ m|// \*\* GROUP RESTRICTIONS \*\*|) {
     231            &write_group_by;
     232        }
     233
    229234        # fill in table restricts
    230235        if ($line =~ m|// \*\* BUTTON RESTRICTIONS \*\*|) {
     
    331336        print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 1.0);\n";
    332337    }
     338    # print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n";
     339}
     340
     341# Generate GROUP BY statement if any
     342sub write_group_by {
    333343    print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n";
    334344}
Note: See TracChangeset for help on using the changeset viewer.