changeset 3170:5c8ecab9f2d4

Stretch import: Added missing prepared statement closing.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 06 May 2019 16:18:41 +0200
parents 9128fdeba3bc
children c8ded555c2a8
files pkg/imports/st.go
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/st.go	Mon May 06 15:18:19 2019 +0200
+++ b/pkg/imports/st.go	Mon May 06 16:18:41 2019 +0200
@@ -177,6 +177,7 @@
 	if err != nil {
 		return nil, err
 	}
+	defer insertCountryStmt.Close()
 
 	var nobjnm sql.NullString
 	if st.NObjNam != nil {