From c21f7ac464c686bda6e9ca5c703359a4434ee6d9 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 24 Jan 2011 20:28:52 +0000 Subject: [PATCH] Fix for spurious warning (LP bug #707114) git-svn-id: svn://svn.open-ils.org/ILS/trunk@19266 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/extras/import/parallel_pg_loader.pl | 2 +- Open-ILS/src/extras/import/pg_loader.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/extras/import/parallel_pg_loader.pl b/Open-ILS/src/extras/import/parallel_pg_loader.pl index 23e0405f4b..43ddaa9ce5 100755 --- a/Open-ILS/src/extras/import/parallel_pg_loader.pl +++ b/Open-ILS/src/extras/import/parallel_pg_loader.pl @@ -107,7 +107,7 @@ while ( my $rec = <> ) { $d =~ s/\\/\\\\/gos; } if ($hint eq 'bre' and $fieldcache{$hint}{fields}[$x] eq 'quality') { - $d = int($d); + $d = int($d) if ($d ne '\N'); } push @data, $d; $x++; diff --git a/Open-ILS/src/extras/import/pg_loader.pl b/Open-ILS/src/extras/import/pg_loader.pl index 2e9eb756f3..cde91dea5e 100755 --- a/Open-ILS/src/extras/import/pg_loader.pl +++ b/Open-ILS/src/extras/import/pg_loader.pl @@ -111,7 +111,7 @@ for my $h (@order) { $d =~ s/\\/\\\\/gos; } if ($h eq 'bre' and $fieldcache{$h}{fields}[$x] eq 'quality') { - $d = int($d); + $d = int($d) if ($d ne '\N'); } push @data, $d; $x++; -- 2.11.0