comparison pkg/imports/stsh.go @ 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 8080007d3c06
children acd0cf98fd44
comparison
equal deleted inserted replaced
4387:65d575505480 4388:eca3afe766d7
317 return nil, err 317 return nil, err
318 } 318 }
319 319
320 // Store the countries 320 // Store the countries
321 for _, country := range countries { 321 for _, country := range countries {
322 if _, err := insCountryStmt.ExecContext(ctx, country); err != nil { 322 if _, err := insCountryStmt.ExecContext(ctx, id, country); err != nil {
323 return nil, err 323 return nil, err
324 } 324 }
325 } 325 }
326 326
327 // Finally track the stretch 327 // Finally track the stretch