sql: use UNION ALL for wcs_all_forms (#37868)
This commit is contained in:
parent
1b33a1de18
commit
74098a2608
|
@ -939,7 +939,7 @@ def do_global_views(conn, cur):
|
|||
common_fields.append(('geoloc_base_y', 'geoloc_base_y'))
|
||||
common_fields.append(('anonymised', 'anonymised'))
|
||||
|
||||
union = ' UNION '.join(['''SELECT %s FROM %s''' % (
|
||||
union = ' UNION ALL '.join(['''SELECT %s FROM %s''' % (
|
||||
', '.join([y[1] for y in common_fields]), x) for x in view_names])
|
||||
cur.execute('''CREATE VIEW wcs_all_forms AS %s''' % union)
|
||||
|
||||
|
|
Loading…
Reference in New Issue