Anlegen von Waren und Dienstleistungen aus Vorgängen heraus: Wird gleich eine Langbes...
[kivitendo-erp.git] / sql / Pg-upgrade2 / USTVA_abstraction.pl
index 9c21718..e948128 100644 (file)
@@ -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] . "<br />"
       $sth->execute(split m/;/, $iconv->convert($copy_data[$statement][$copy_line]), -1) || mydberror($query);
     }