Skip to content

[FIX] NativeQuery 오작성으로 인한 SQL 호출시 오류가 발생하는 문제 수정#483

Merged
GiJungPark merged 1 commit intodevfrom
fix/#481
Mar 29, 2026
Merged

[FIX] NativeQuery 오작성으로 인한 SQL 호출시 오류가 발생하는 문제 수정#483
GiJungPark merged 1 commit intodevfrom
fix/#481

Conversation

@GiJungPark
Copy link
Copy Markdown
Member

Related Issue

Key Changes

ReadNotification 테이블에는 CreatedAt과 UpdatedAt 필드가 존재하지 않습니다.
하지만 NativeQuery에서 해당 필드를 저장하는 쿼리가 존재하고 있습니다.
이로 인해서, 공지를 읽을 때 읽기 여부를 저장하는 쿼리에서 필드 불일치로 인해 예외가 발생하고 있는 문제였습니다.
따라서, 해당 NativeQuery를 정상적으로 수정하였습니다.

To Reviewers

컴파일 단계에서 문제를 알 수 있는 QueryDSL 등으로의 전환도 고려해봐야 할 듯 싶습니다.

References

- CreatedAt, UpdatedAt 필드가 존재하지 않는데, Native 쿼리에서 해당 필드를 저장하려고 해서 발생하는 문제
@github-actions github-actions bot requested review from ljy1348 and sansan20535 March 29, 2026 05:46
@GiJungPark GiJungPark merged commit ca59702 into dev Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] GET Notification API 호출 안되는 오류

1 participant