Browse Source

Use $5 instead of $2 - 1

pull/3961/head
Adam Lamar 2 years ago
parent
commit
3be3afc80e
  1. 2
      weed/filer/postgres3/postgres3_store.go

2
weed/filer/postgres3/postgres3_store.go

@ -55,7 +55,7 @@ const (
listEntryQueryPattern = `SELECT key, name, isdir, meta FROM
(
SELECT key, name, false as isdir, meta FROM "%s"
WHERE prefixes @> $1 AND cardinality(prefixes) < $2 - 1
WHERE prefixes @> $1 AND cardinality(prefixes) < $5
AND name __COMPARISON__ $3 AND name LIKE $4 ORDER BY key ASC LIMIT $6
) s1
UNION

Loading…
Cancel
Save