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:
committed by
Steve Chávez
parent
1c6ded16d1
commit
ecf0e9213f
@@ -726,7 +726,7 @@ allSynonyms cols =
|
|||||||
target_entries as(
|
target_entries as(
|
||||||
select
|
select
|
||||||
view_schema, view_name,
|
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
|
from last_target_list_wo_tail
|
||||||
),
|
),
|
||||||
results as(
|
results as(
|
||||||
|
|||||||
Reference in New Issue
Block a user