memos/store/db/postgres
Steven 46ce0bc62e fix(store): correct PostgreSQL placeholder generation in IN clauses
Fixes a regression introduced in v0.25.2 where PostgreSQL IN clause
placeholders were not properly incremented, causing all parameters to
use the same placeholder index (e.g., $1, $1, $1 instead of $1, $2, $3).

This bug affected:
- ListReactions (ContentIDList) - caused "failed to list reactions" errors
- ListAttachments (MemoIDList)
- ListMemos (IDList and UIDList)

The fix combines placeholder generation and argument appending into a
single loop to ensure proper incrementing.

Fixes #5188

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 06:47:06 +08:00
..
activity.go chore: fix postgres stmts 2024-01-05 21:27:16 +08:00
attachment.go fix(store): correct PostgreSQL placeholder generation in IN clauses 2025-10-25 06:47:06 +08:00
common.go chore: fix postgres stmts 2024-01-05 21:27:16 +08:00
idp.go fix: create idp in postgres 2024-05-29 23:22:20 +08:00
inbox.go fix: remove errors.Wrap(nil) (#4576) 2025-03-31 12:56:51 +08:00
memo.go fix(store): correct PostgreSQL placeholder generation in IN clauses 2025-10-25 06:47:06 +08:00
memo_filter_test.go refactor: memo filter 2025-10-16 09:22:52 +08:00
memo_relation.go refactor: memo filter 2025-10-16 09:22:52 +08:00
migration_history.go refactor: update migration history methods 2025-10-20 23:05:50 +08:00
postgres.go chore: fix linter 2025-06-15 10:27:24 +08:00
reaction.go fix(store): correct PostgreSQL placeholder generation in IN clauses 2025-10-25 06:47:06 +08:00
user.go refactor: memo filter 2025-10-16 09:22:52 +08:00
user_setting.go refactor: general user setting 2025-06-23 23:23:57 +08:00
workspace_setting.go chore: tweak workspace setting store 2024-04-10 22:31:55 +08:00