Bugzilla – Attachment 32512 Details for
Bug 11399
batch rebuild items tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11399: QA fixes
PASSED-QA-Bug-11399-QA-fixes.patch (text/plain), 1.43 KB, created by
Kyle M Hall (khall)
on 2014-10-17 14:52:10 UTC
(
hide
)
Description:
[PASSED QA] Bug 11399: QA fixes
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-10-17 14:52:10 UTC
Size:
1.43 KB
patch
obsolete
>From 096e0118c6046d26a7fcb6676526cdceb5e614f7 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?St=C3=A9phane=20Delaune?= <stephane.delaune@biblibre.com> >Date: Thu, 11 Sep 2014 10:29:49 +0200 >Subject: [PATCH] [PASSED QA] Bug 11399: QA fixes > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/batchRebuildItemsTables.pl | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/misc/batchRebuildItemsTables.pl b/misc/batchRebuildItemsTables.pl >index e05e4d4..2398bdb 100755 >--- a/misc/batchRebuildItemsTables.pl >+++ b/misc/batchRebuildItemsTables.pl >@@ -1,7 +1,5 @@ > #!/usr/bin/perl >-use 5.10.0; >-use strict; >-use warnings; >+use Modern::Perl; > use Getopt::Long; > use C4::Context; > use C4::Biblio; >@@ -94,8 +92,10 @@ while ( my ( $biblionumber, $biblioitemnumber, $frameworkcode ) = $sth->fetchrow > } > } > >-$dbh->do("UPDATE systempreferences SET value=$CataloguingLog WHERE variable='CataloguingLog'"); >-$dbh->do("UPDATE systempreferences SET value=$dontmerge where variable='dontmerge'"); >+my $sthCataloguingLog = $dbh->prepare("UPDATE systempreferences SET value=? WHERE variable='CataloguingLog'"); >+$sthCataloguingLog->execute($CataloguingLog); >+my $sthdontmerge = $dbh->prepare("UPDATE systempreferences SET value=? WHERE variable='dontmerge'"); >+$sthdontmerge->execute($dontmerge); > $dbh->commit() unless $test_parameter; > my $timeneeded = time() - $starttime; > print "$count MARC record done in $timeneeded seconds\n"; >-- >1.7.2.5
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 11399
:
23575
|
23593
|
29156
|
31518
|
32511
| 32512