You are here: Foswiki>Tasks Web>Item9192 (10 Aug 2010, SvenDowideit)Edit Attach

Item9192: query 'notafield AND 1' evaluates as a constant, on winfdows

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: SvenDowideit
strawbeery perl 5.12 :/

sub verify_evaluatesToConstant {
    my $this = shift;
    
    my $queryParser = new Foswiki::Query::Parser();
    my $query       = $queryParser->parse("notafield AND 1");
    my $meta        = $this->{meta};


    $this->assert($query->simplify( tom => $meta, data => $meta ), 
        "can't be a constant - we don't know what 'notafield' is without a context...");


}

which breaks the search optimisations

-- SvenDowideit - 24 Jun 2010

I reverted 7902, because it broke the query tests.

-- CrawfordCurrie - 24 Jun 2010

unit tests still pass, closing (the reversion shows the code is ok still)

-- SvenDowideit - 10 Aug 2010

 

ItemTemplate edit

Summary query 'notafield AND 1' evaluates as a constant, on winfdows
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:e69f8efe6e63 distro:ecff8c79488d distro:aa8416391bc2
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r6 - 10 Aug 2010, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy