From: Moritz Bunkus Date: Mon, 17 Jan 2011 11:44:07 +0000 (+0100) Subject: Vor dem Locken von Tabellen Transaktion starten X-Git-Tag: release-2.6.2beta2~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5609a646164465de4a4217a2757c27d4c0b6bcee;p=kivitendo-erp.git Vor dem Locken von Tabellen Transaktion starten PostgreSQL ab 8.4 bricht ansonsten mit einer Fehlermeldung ab. --- 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;