changeset 4191:a1cc14c9ce69

Delete section import: Fixed SQL usage.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 12 Aug 2019 14:21:26 +0200
parents 0601143ffd02
children 095731c880b4
files pkg/imports/dsec.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/dsec.go	Mon Aug 12 11:35:27 2019 +0200
+++ b/pkg/imports/dsec.go	Mon Aug 12 14:21:26 2019 +0200
@@ -87,7 +87,7 @@
 	defer tx.Rollback()
 
 	var found bool
-	if err := tx.QueryRowContext(ctx, dsecExistsSQL, dsec.ID).Scan(dsec.ID); err != nil {
+	if err := tx.QueryRowContext(ctx, dsecExistsSQL, dsec.ID).Scan(&found); err != nil {
 		return nil, err
 	}