Changeset 1489


Ignore:
Timestamp:
08/21/11 21:16:05 (13 years ago)
Author:
gaba
Message:

CQL syntax parse problem - escape '-' characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java

    r1488 r1489  
    419419          try {
    420420                CQLParser parser = new CQLParser();             
    421                 query_cql = parser.parse(full_query_string);
     421                // cannot accept '-' at the CQL beginning
     422                String local_full_query_string = full_query_string;
     423                local_full_query_string = local_full_query_string.replace("-", "%2D");
     424
     425                query_cql = parser.parse(local_full_query_string);
    422426          }
    423427                catch (CQLParseException e) {
Note: See TracChangeset for help on using the changeset viewer.