IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29485


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

Location:
trunk/ippMonitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/autocode.php

    r26456 r29485  
    2525$restricted = 0;
    2626
    27 // define restrictiosn to the queries
     27// define restrictions to the queries
    2828// ** TABLE RESTRICTIONS **
    2929
     
    3333  }
    3434}
     35
     36// Add GROUP BY statements if any
     37// ** GROUP RESTRICTIONS **
    3538
    3639// get the result table count
  • 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.