From 5609a646164465de4a4217a2757c27d4c0b6bcee Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 17 Jan 2011 12:44:07 +0100 Subject: [PATCH] Vor dem Locken von Tabellen Transaktion starten PostgreSQL ab 8.4 bricht ansonsten mit einer Fehlermeldung ab. --- SL/TransNumber.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/TransNumber.pm b/SL/TransNumber.pm index e2bec7685..9aed12655 100644 --- a/SL/TransNumber.pm +++ b/SL/TransNumber.pm @@ -106,6 +106,7 @@ sub create_unique { my $form = $main::form; my %filters = $self->_get_filters(); + $self->dbh->begin_work; do_query($form, $self->dbh, qq|LOCK TABLE defaults|); do_query($form, $self->dbh, qq|LOCK TABLE business|) if $self->business_id; -- 2.20.1