Branch: Tag:

2001-06-11

2001-06-11 09:24:09 by David Norlin <norlin@roxen.com>

Handle null queries.

Rev: lib/modules/Search.pmod/Grammar.pmod/module.pmod:1.5
Rev: lib/modules/Search.pmod/Query.pmod:1.12

75:       Search.Grammar.ParseNode q = parser->parse(query);    q = Search.Grammar.optimize(q); +  +  if (!q) // The query was a null query +  return Search.ResultSet(); // so return an empty resultset +     string error = Search.Grammar.validate(q);    if (error)    throw (error);