projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
becda06
)
Vor dem Locken von Tabellen Transaktion starten
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 17 Jan 2011 11:44:07 +0000
(12:44 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 17 Jan 2011 11:44:23 +0000
(12:44 +0100)
PostgreSQL ab 8.4 bricht ansonsten mit einer Fehlermeldung ab.
SL/TransNumber.pm
patch
|
blob
|
history
diff --git
a/SL/TransNumber.pm
b/SL/TransNumber.pm
index
e2bec76
..
9aed126
100644
(file)
--- 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;