You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/09/08 23:05:27 UTC

[Bug 3760] New: BayesSQL: tok_touch_all produces invalid sql when called with no tokens

http://bugzilla.spamassassin.org/show_bug.cgi?id=3760

           Summary: BayesSQL: tok_touch_all produces invalid sql when called
                    with no tokens
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Learner
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: parkerm@pobox.com


If no significant tokens are found then tok_touch_all gets called with with an
empty array of tokens.  tok_touch_all doesn't check for this condition so it
generates some bogus SQL code.

a) tok_touch_all shouldn't even be called if it's not going to do anything.

b) tok_touch_all should check for this condition and just return.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.