코딩 에러 및 질문
"could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet",
요가하는 개발자
2023. 9. 7. 13:29
🌳 에러 코드
"could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet",
🌳 해결 방법
🌾 원인 :쿼리 문자열의 각 부분이 연결되어 있지 않아서 문법 오류가 발생
🌾 해결 방법 :
"FROM reservation AS A "와
"SELECT A.reservationDate AS reservationDate "
의 문자열 간 공백을 추가하고 각 부분을 연결 (\n 추가)
Before
After