query.setLabels(labels);
}
// The format clause (e.g., FORMAT c1 "#", c3 "dd-MM-YYYY")
final public void formatClause(Query query) throws ParseException, InvalidQueryException {
QueryFormat formats = new QueryFormat();
AbstractColumn column;
String pattern;
jj_consume_token(KW_FORMAT);
column = abstractColumnDescriptor();
pattern = stringLiteral();
formats.addPattern(column, pattern);
label_6:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case OP_COMMA:
;
break;
default:
jj_la1[16] = jj_gen;
break label_6;
}
jj_consume_token(OP_COMMA);
column = abstractColumnDescriptor();
pattern = stringLiteral();
formats.addPattern(column, pattern);
}
query.setUserFormatOptions(formats);
}