From d890f886effd222cdff138acea5f44f45f6c12b0 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Thu, 12 Jul 2007 17:35:14 +0000 Subject: [PATCH] Bug: Array wird von eins an hochgezaehlt, dann fehlt aber der erste Datensatz. --- sql/Pg-upgrade2/USTVA_abstraction.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/Pg-upgrade2/USTVA_abstraction.pl b/sql/Pg-upgrade2/USTVA_abstraction.pl index 9c2171884..e94812855 100644 --- a/sql/Pg-upgrade2/USTVA_abstraction.pl +++ b/sql/Pg-upgrade2/USTVA_abstraction.pl @@ -147,7 +147,7 @@ sub do_copy { my $query = $iconv->convert($copy_statements[$statement]); my $sth = $dbh->prepare($query) || mydberror($query); - for my $copy_line ( 1 .. $#{$copy_data[$statement]} ) { + for my $copy_line ( 0 .. $#{$copy_data[$statement]} ) { #print $copy_data[$statement][$copy_line] . "
" $sth->execute(split m/;/, $iconv->convert($copy_data[$statement][$copy_line]), -1) || mydberror($query); } -- 2.20.1