Mercurial > gemma
comparison pkg/imports/gm.go @ 1780:48791416bea5
(Approved) gauge measurement import: Fixed row level security.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 11 Jan 2019 16:48:14 +0100 |
parents | 6a902363b435 |
children | 15af36e41f27 |
comparison
equal
deleted
inserted
replaced
1779:ad1c12e999df | 1780:48791416bea5 |
---|---|
63 predicted, | 63 predicted, |
64 is_waterlevel, | 64 is_waterlevel, |
65 value_min, | 65 value_min, |
66 value_max, | 66 value_max, |
67 date_info, | 67 date_info, |
68 source_organization | 68 source_organization, |
69 staging_done | |
69 ) VALUES( | 70 ) VALUES( |
70 ($1, $2, $3, $4, $5), | 71 ($1, $2, $3, $4, $5), |
71 $6, | 72 $6, |
72 $7, | 73 $7, |
73 $8, | 74 $8, |
78 $13, | 79 $13, |
79 $14, | 80 $14, |
80 $15, | 81 $15, |
81 $16, | 82 $16, |
82 $17, | 83 $17, |
83 $18 | 84 $18, |
85 $19 | |
84 ) | 86 ) |
85 RETURNING id` | 87 RETURNING id` |
86 ) | 88 ) |
87 | 89 |
88 type gmJobCreator struct{} | 90 type gmJobCreator struct{} |
302 isWaterlevel, | 304 isWaterlevel, |
303 convert(measure.Value_min), | 305 convert(measure.Value_min), |
304 convert(measure.Value_max), | 306 convert(measure.Value_max), |
305 msg.Identification.Date_issue, | 307 msg.Identification.Date_issue, |
306 msg.Identification.Originator, | 308 msg.Identification.Originator, |
309 true, // staging_done | |
307 ).Scan(&gid) | 310 ).Scan(&gid) |
308 if err != nil { | 311 if err != nil { |
309 return nil, err | 312 return nil, err |
310 } | 313 } |
311 } | 314 } |