Fix unknown function ends_with in pg

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-07 11:14:21 +04:00
parent 3e4b4eec78
commit 8393e4bfb1
2 changed files with 3 additions and 3 deletions

View File

@@ -241,7 +241,7 @@ WHERE
AND (
(match_type = @match_type_glob
AND starts_with(@identifier, split_part(pattern, '*', 1))
AND ends_with(@identifier, split_part(pattern, '*', 2))
AND right(@identifier, length(split_part(pattern, '*', 2))) = split_part(pattern, '*', 2)
AND length(@identifier) >= length(pattern) - 1)
OR (match_type = @match_type_exact AND pattern = @identifier)
)