0001-sql-ignore-non-dict-values-for-block-fields-53065.patch
wcs/sql.py | ||
---|---|---|
1681 | 1681 |
value = datetime.datetime(value.tm_year, value.tm_mon, value.tm_mday) |
1682 | 1682 |
elif sql_type == 'bytea': |
1683 | 1683 |
value = bytearray(pickle.dumps(value, protocol=2)) |
1684 |
elif sql_type == 'jsonb' and value.get('schema'): |
|
1684 |
elif sql_type == 'jsonb' and isinstance(value, dict) and value.get('schema'):
|
|
1685 | 1685 |
# block field, adapt date/field values |
1686 | 1686 |
value = copy.deepcopy(value) |
1687 | 1687 |
for field_id, field_type in value.get('schema').items(): |
1688 |
- |