Bugzilla – Attachment 76909 Details for
Bug 20287
Move AddMember and ModMember to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20287: Use DBIC transaction instead of AutoCommit=0
Bug-20287-Use-DBIC-transaction-instead-of-AutoComm.patch (text/plain), 1.18 KB, created by
Jonathan Druart
on 2018-07-12 18:49:41 UTC
(
hide
)
Description:
Bug 20287: Use DBIC transaction instead of AutoCommit=0
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-12 18:49:41 UTC
Size:
1.18 KB
patch
obsolete
>From 9d71288d835ae54f4c1d64ca96a1bdefc0d03a14 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 22 Feb 2018 16:25:52 -0300 >Subject: [PATCH] Bug 20287: Use DBIC transaction instead of AutoCommit=0 > >Remove error "Already in a transaction" > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/Utils/Datatables_Virtualshelves.t | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Utils/Datatables_Virtualshelves.t b/t/db_dependent/Utils/Datatables_Virtualshelves.t >index 564a08ddc4..cdc7225033 100644 >--- a/t/db_dependent/Utils/Datatables_Virtualshelves.t >+++ b/t/db_dependent/Utils/Datatables_Virtualshelves.t >@@ -29,12 +29,10 @@ use Koha::Virtualshelves; > > use_ok( "C4::Utils::DataTables::VirtualShelves" ); > >+my $schema = Koha::Database->new->schema; >+$schema->storage->txn_begin; > my $dbh = C4::Context->dbh; > >-# Start transaction >-$dbh->{AutoCommit} = 0; >-$dbh->{RaiseError} = 1; >- > $dbh->do(q|DELETE FROM virtualshelves|); > > # Pick a categorycode from the DB >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20287
:
73436
|
76901
|
76902
|
76903
|
76904
|
76905
|
76906
|
76907
|
76908
| 76909 |
76910
|
76911
|
76912
|
76913
|
76914
|
76915
|
76916
|
76917
|
76918
|
76919
|
76920
|
76921
|
76922
|
76923
|
76924
|
76927
|
77221