Changeset 4218


Ignore:
Timestamp:
2003-05-01T14:34:20+12:00 (21 years ago)
Author:
kjdon
Message:

now we pass on syntax_error from mgpp parsing back to the mgppqueryfilter via queryresultsclass. the filter passes it back using the commerror err, with a new value syntaxError

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgppqueryfilter.cpp

    r1909 r4218  
    165165  do_multi_query (request, queryfilterparams, queryresults, err, logout);
    166166  if (err != noError) return;
    167  
    168167  // assemble document results
    169168  if (need_matching_docs (request.filterResultOptions)) {
     
    324323    }
    325324
     325    // check for syntax error
     326    if (thisqueryresults.syntax_error==true) {
     327      logout << text_t2ascii
     328         << "syntax problem: invalid query string \""
     329         << (*query_here).querystring<<"\".\n";
     330      err = syntaxError;
     331      return;
     332    }
    326333    // combine the results
    327334    if (need_matching_docs (request.filterResultOptions)) {
Note: See TracChangeset for help on using the changeset viewer.