From 1197d6524e7946f6e095997dc08e3501ee5843b5 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Wed, 27 Dec 2023 11:19:58 +0100 Subject: [PATCH] FIX: switched to dbi in lower case --- plugins/rcpt_mysql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/rcpt_mysql b/plugins/rcpt_mysql index 912ac81..dd2c3dd 100644 --- a/plugins/rcpt_mysql +++ b/plugins/rcpt_mysql @@ -35,7 +35,7 @@ sub createDSN { my $self = shift; - my $dsn = "DBI:MariaDB:database=" . $self->{database} . ";host=" . $self->{host} . ";port=" . $self->{port}; + my $dsn = "dbi:MariaDB(RaiseError=>0):database=" . $self->{database} . ";host=" . $self->{host} . ";port=" . $self->{port}; $self->{dsn} = $dsn; $self->log(LOGDEBUG, "created DSN " . $self->{dsn}); @@ -179,6 +179,8 @@ sub askDatabase { my $self = shift; my $recipient = shift; + + $self->log(LOGDEBUG, "use DSN " . $self->{dsn}); my $dbh = DBI::connect($self->{dsn}, $self->{user}, $self->{pass}); if ($dbh->err())