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

[BUG] 알람 삭제 treat() 에러 확인 #133

Open
2 tasks
5jisoo opened this issue Nov 25, 2024 · 0 comments
Open
2 tasks

[BUG] 알람 삭제 treat() 에러 확인 #133

5jisoo opened this issue Nov 25, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@5jisoo
Copy link
Member

5jisoo commented Nov 25, 2024

🔍 버그 설명

treat() jpa 메소드 사용 과정에서 에러 발생. 기존에는 native query로 해결하였으나, 다른 방식으로 해결 필요

🧐 버그 발생 과정

  • 에러 원인 확인
  • native query 수정

📷 Screenshots

Hibernate: update (select * from alarm t where t.dtype='FollowAlarm') set status='DELETED' where follow_id=? and dtype='FollowAlarm' and (alarm.status = 'ACTIVE')
2024-07-02T16:22:36.063+09:00  WARN 18528 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 1248, SQLState: 42000
2024-07-02T16:22:36.063+09:00 ERROR 18528 --- [    Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper   : Every derived table must have its own alias
@5jisoo 5jisoo added the 🐛 bug Something isn't working label Nov 25, 2024
@5jisoo 5jisoo moved this to Todo in POCHAK SERVER Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant