projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
e2850e2
)
moving config into else clause for cleanliness
author
Rogan Hamby
<rhamby@esilibrary.com>
Mon, 12 Feb 2018 19:17:33 +0000 (14:17 -0500)
committer
Rogan Hamby
<rhamby@esilibrary.com>
Mon, 12 Feb 2018 19:17:33 +0000 (14:17 -0500)
text/csv2sql
patch
|
blob
|
history
diff --git
a/text/csv2sql
b/text/csv2sql
index
37a136d
..
9ee8203
100755
(executable)
--- a/
text/csv2sql
+++ b/
text/csv2sql
@@
-14,11
+14,11
@@
my $cfg;
my $csv_config;
sub init {
- our %config;
if ($PGHOST and $PGPORT and $PGUSER and $PGDATABASE)
{
$dbh = connect_db($PGDATABASE,$PGUSER,undef,$PGHOST) or die $DBI::errstr;
} else {
+ our %config;
do '/openils/conf/offline-config.pl';
$dbh = DBI->connect( $config{dsn}, $config{usr}, $config{pw} ) or die $DBI::errstr;
}