Bugzilla – Attachment 19406 Details for
Bug 10274
UT: Acquisition.t needs to create its own data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10274: Execute sql queries into a transaction
Bug-10274-Execute-sql-queries-into-a-transaction.patch (text/plain), 1.32 KB, created by
Jonathan Druart
on 2013-07-05 12:50:46 UTC
(
hide
)
Description:
Bug 10274: Execute sql queries into a transaction
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-07-05 12:50:46 UTC
Size:
1.32 KB
patch
obsolete
>From e17f09b18545b8979b5a368d97649f388ce339d7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 5 Jul 2013 14:50:03 +0200 >Subject: [PATCH] Bug 10274: Execute sql queries into a transaction > >--- > t/db_dependent/Acquisition.t | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index dd185ac..2835f26 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -18,6 +18,10 @@ BEGIN { > use_ok('C4::Bookseller'); > } > >+my $dbh = C4::Context->dbh; >+$dbh->{AutoCommit} = 0; >+$dbh->{RaiseError} = 1; >+ > my $booksellerid = C4::Bookseller::AddBookseller( > { > name => "my vendor", >@@ -120,13 +124,4 @@ for my $field ( @expectedfields ) { > ok( exists( $firstorder->{ $field } ), "This order has a $field field" ); > } > >-END { >- C4::Acquisition::DelOrder( $biblionumber1, $ordernumber1 ); >- C4::Acquisition::DelOrder( $biblionumber2, $ordernumber2 ); >- C4::Acquisition::DelOrder( $biblionumber2, $ordernumber3 ); >- C4::Budgets::DelBudget( $budgetid ); >- C4::Acquisition::DelBasket( $basketno ); >- C4::Bookseller::DelBookseller( $booksellerid ); >- C4::Biblio::DelBiblio($biblionumber1); >- C4::Biblio::DelBiblio($biblionumber2); >-}; >+$dbh->rollback; >-- >1.7.10.4
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 10274
:
18197
|
18251
|
18661
|
18976
|
19405
|
19406
|
19620
|
19621