From 16de752defb81562bab6e6aa1eeb4e12cd76d735 Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 26 Aug 2008 13:50:13 +0000 Subject: [PATCH] make AND and OR case-sensitive --- src/query/wasastringtoquery.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/query/wasastringtoquery.cpp b/src/query/wasastringtoquery.cpp index f242c1e1..e72488ee 100644 --- a/src/query/wasastringtoquery.cpp +++ b/src/query/wasastringtoquery.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: wasastringtoquery.cpp,v 1.8 2008-08-26 13:47:21 dockes Exp $ (C) 2006 J.F.Dockes"; +static char rcsid[] = "@(#$Id: wasastringtoquery.cpp,v 1.9 2008-08-26 13:50:13 dockes Exp $ (C) 2006 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -118,9 +118,9 @@ void WasaQuery::describe(string &desc) const * parenthesis increases the index, but we're not interested in all */ static const char * parserExpr = - "([oO][rR]|\\|\\|)[[:space:]]*" //1 OR,or,|| + "(OR|\\|\\|)[[:space:]]*" //1 OR,|| "|" - "([Aa][Nn][Dd]|&&)[[:space:]]*" // 2 AND,and,&& (ignored, default) + "(AND|&&)[[:space:]]*" // 2 AND,&& (ignored, default) "|" "(" //3 "([+-])?" //4 Force or exclude indicator