# HG changeset patch # User Sascha L. Teichmann # Date 1565612486 -7200 # Node ID a1cc14c9ce69d9be18ccf2c7c2ff9b718a4adba5 # Parent 0601143ffd02fff47e5416f17bba5985e13b438a Delete section import: Fixed SQL usage. diff -r 0601143ffd02 -r a1cc14c9ce69 pkg/imports/dsec.go --- 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 }