Skip to content

Commit

Permalink
Work around RT#124962
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 28, 2018
1 parent f3a3b95 commit bcb0ef6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Geo/Coder/Free/bin/db2sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ trap "rm $1.sql" 1 2 15
which sqlite3 || exit 1

rm -f $1.sql
gunzip -c $1.csv.gz | csv2sqlite -o allow_loose_quotes=1 /dev/stdin $1.sql

# Hackary because of RT#124962
CSV2SQLITE=`which csv2sqlite`

gunzip -c $1.csv.gz | env perl $CSV2SQLITE -o allow_loose_quotes=1 /dev/stdin $1.sql
echo "ALTER TABLE stdin RENAME TO $1;" | sqlite3 $1.sql

0 comments on commit bcb0ef6

Please sign in to comment.