https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8033

Henrik Krohns <apa...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apa...@hege.li

--- Comment #7 from Henrik Krohns <apa...@hege.li> ---
Created attachment 5809
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5809&action=edit
pragma support patch

I realized my mistake. It's not enough to set pragma only in bayessql.t as it's
not persistent

$dbh->do("PRAGMA synchronous = OFF");

BayesStore/SQL.pm opens up the connections, so it must be set there too.

I propose the following patch which will process PRAGMA clauses from DSN
attributes

dbi:SQLite:dbname=$dbdir/bayes.db;synchronous=OFF

I think it's future proof, atleast adding random stuff like ;foo=bar does not
break anything.

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

Reply via email to