Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(postgres): query bug, one too many args #314

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/app/subsystems/aio/store/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ const (
($1::int IS NULL OR sort_id < $1) AND
id LIKE $2 AND
state & $3 != 0 AND
$4::text IS NULL AND
($5::jsonb IS NULL OR tags @> $5)
($4::jsonb IS NULL OR tags @> $4)
ORDER BY
sort_id DESC
LIMIT
$6`
$5`

PROMISE_INSERT_STATEMENT = `
INSERT INTO promises
Expand Down