[prev in list] [next in list] [prev in thread] [next in thread]
List: spamassassin-devel
Subject: [Bug 7218] SQLBasedAddrList.pm generates lots of duplicate key errors in database logs
From: bugzilla-daemon () spamassassin ! apache ! org
Date: 2019-02-24 18:59:06
Message-ID: bug-7218-26-Zldpn8WMIJ () https ! bz ! apache ! org/SpamAssassin/
[Download RAW message or body]
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7218
Giovanni Bechis <giovanni@paclan.it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovanni@paclan.it
--- Comment #11 from Giovanni Bechis <giovanni@paclan.it> ---
(In reply to Daniel J. Luke from comment #8)
> (In reply to Kevin A. McGrail from comment #7)
> > Can you provide a patch that handles that different behavior? Or is there a
> > more unified code that works for both?
>
> I can try to set aside some time to do that - but as I noted back in 2016 -
> I didn't see an obvious way to modify SQLBasedAddrList for a particular DB
> (I'm not sure if there's an existing way I should flag on or if this needs
> some refactoring to be more flexible).
With DBI>=1.43 (released in 2003) you can go this way:
my ($scheme, $driver, $attr_string, $attr_hash, $driver_dsn)
= DBI->parse_dsn($dsn);
if($driver eq "pg") {
# do stuff
}
--
You are receiving this mail because:
You are the assignee for the bug.=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic