comparison pkg/imports/st.go @ 2261:c5bbe2409a52

Stretch import: Call Stringer for ISRS codes directly when logging range.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 14 Feb 2019 11:21:33 +0100
parents cce158db02b0
children 6b34d0fb4498
comparison
equal deleted inserted replaced
2260:531e776cb81d 2261:c5bbe2409a52
168 var nobjnm sql.NullString 168 var nobjnm sql.NullString
169 if st.NObjNam != nil { 169 if st.NObjNam != nil {
170 nobjnm = sql.NullString{String: *st.NObjNam, Valid: true} 170 nobjnm = sql.NullString{String: *st.NObjNam, Valid: true}
171 } 171 }
172 172
173 feedback.Info("Stretch from %s to %s.", st.From, st.To) 173 feedback.Info("Stretch from %s to %s.", st.From.String(), st.To.String())
174 174
175 var id int64 175 var id int64
176 if err := tx.QueryRowContext( 176 if err := tx.QueryRowContext(
177 ctx, 177 ctx,
178 stInsertSQL, 178 stInsertSQL,