Skip to content

Commit 2f79120

Browse files
JIWONKIMSclaude
andcommitted
fix(chatroom): PostgreSQL type inference error in cursor pagination
- Add explicit cast to timestamp for cursorUpdatedAt parameter - Fixes "could not determine data type of parameter $3" error - PostgreSQL requires explicit type hints for nullable parameters in prepared statements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4c344af commit 2f79120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/back/koreaTravelGuide/domain/userChat/chatroom/repository/ChatRoomRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface ChatRoomRepository : JpaRepository<ChatRoom, Long> {
2727
select r from ChatRoom r
2828
where (r.guideId = :memberId or r.userId = :memberId)
2929
and (
30-
:cursorUpdatedAt is null
30+
cast(:cursorUpdatedAt as timestamp) is null
3131
or r.updatedAt < :cursorUpdatedAt
3232
or (r.updatedAt = :cursorUpdatedAt and r.id < :cursorRoomId)
3333
)

0 commit comments

Comments
 (0)