changeset 4388:eca3afe766d7

stretch shape import: Fixed db insert of countries.
author Sascha Wilde <wilde@intevation.de>
date Thu, 12 Sep 2019 18:10:03 +0200
parents 65d575505480
children acd0cf98fd44 d9088bb96ce1
files pkg/imports/stsh.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/stsh.go	Thu Sep 12 15:52:30 2019 +0200
+++ b/pkg/imports/stsh.go	Thu Sep 12 18:10:03 2019 +0200
@@ -319,7 +319,7 @@
 
 		// Store the countries
 		for _, country := range countries {
-			if _, err := insCountryStmt.ExecContext(ctx, country); err != nil {
+			if _, err := insCountryStmt.ExecContext(ctx, id, country); err != nil {
 				return nil, err
 			}
 		}