sql: use UNION ALL for wcs_all_forms (#37868)

This commit is contained in:
Benjamin Dauvergne 2019-11-21 23:06:23 +01:00 committed by Frédéric Péters
parent 1b33a1de18
commit 74098a2608
1 changed files with 1 additions and 1 deletions

View File

@ -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)