157
task := make(map[string]any)
158
for iter.MapScan(task) {
160
>
if !ok { // no tasks, but static column record returned
161
continue
162
}
163
165
>
if !ok {
166
return nil, newFieldNotFoundError("task", task)
167
}
169
>
if !ok {
170
var byteSliceType []byte
171
return nil, newPersistedTypeMismatchError("task", byteSliceType, rawTask, task)
172
}
173
175
>
if !ok {
176
return nil, newFieldNotFoundError("task_encoding", task)
177
}
179
>
if !ok {
180
var byteSliceType []byte
181
return nil, newPersistedTypeMismatchError("task_encoding", byteSliceType, rawEncoding, task)
182
}
184
>
185
>
task = make(map[string]any) // Reinitialize map as initialized fails on unmarshalling
186
}
187
if len(iter.PageState()) > 0 {