koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha fixBranches.pl,1.1,1.2


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha fixBranches.pl,1.1,1.2
Date: Sat, 05 Oct 2002 02:45:09 -0700

Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv19433

Modified Files:
        fixBranches.pl 
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.


Index: fixBranches.pl
===================================================================
RCS file: /cvsroot/koha/koha/fixBranches.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** fixBranches.pl      21 Aug 2002 02:42:54 -0000      1.1
--- fixBranches.pl      5 Oct 2002 09:45:07 -0000       1.2
***************
*** 5,9 ****
  use strict;
  use DBI;
! use C4::Database;
  
  # This script makes the following substitutions.
--- 5,9 ----
  use strict;
  use DBI;
! use C4::Context;
  
  # This script makes the following substitutions.
***************
*** 44,48 ****
  
  # do the substitutions.....
! my $dbh = &C4Connect;           
  
  my $sth = $dbh->prepare("SELECT barcode, holdingbranch, homebranch FROM 
items");
--- 44,48 ----
  
  # do the substitutions.....
! my $dbh = C4::Context->dbh;
  
  my $sth = $dbh->prepare("SELECT barcode, holdingbranch, homebranch FROM 
items");
***************
*** 72,75 ****
  
  print "\nFinished output from fixbranches.pl\n";
- 
- $dbh->disconnect;
--- 72,73 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]