Remove array slice in allSynonyms query

This is for ensuring compatibility with pg 9.4 which doesn't support
omitting the array slice upper bound, [2:] gives an error.

The query still works fine because the array slice was to avoid having
a "({" result but this gets removed in the later join.
This commit is contained in:
steve-chavez
2018-07-18 09:43:42 -05:00
committed by Steve Chávez
parent 1c6ded16d1
commit ecf0e9213f
+1 -1
View File
@@ -726,7 +726,7 @@ allSynonyms cols =
target_entries as(
select
view_schema, view_name,
unnest((regexp_split_to_array(x, 'TARGETENTRY'))[2:]) as entry
unnest(regexp_split_to_array(x, 'TARGETENTRY')) as entry
from last_target_list_wo_tail
),
results as(