Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-550

Queries in the default package are built twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 6.1.0.Final
    • 5.6.0.Final, 6.1.0.CR2
    • None
    • None
    • Hide

      Take the query

      query foo( String $s ) ... end
      

      and the rule fragment

      $i : Integer()
      foo( $i ; )
      
      Show
      Take the query query foo( String $s ) ... end and the rule fragment $i : Integer () foo( $i ; )

      When queries are built, they are looked up in the current package AND in any imported package. In the case of .defaultpkg, which is imported by default, both checks succeed and the query is built twice
      See PatternBuilder line 213

              mproctor@redhat.com Mark Proctor
              dsotty Davide Sottara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: