오라클(ORACLE) Unable to translate SQLException with Error code '932', will now try the fallback translator 오류

experience

  • oracle, ibatis 연동과정중에 위와 같은 오류 발생과 함께 업데이트(update)가 실패하는 이슈
 
* 대충확인 결과, sql devleloper와 같은 툴을 이용할때는 문제가 없으나 application 단에서 동작할 때에는 형변환이 정상적이지 않은 듯..
 
 - 문제의 쿼리
bb와 c는 date type
 update rr 
set a = (#bb# - c) * 60
where ~~~
 
- 해결 쿼리
update rr 
set a = (cast(#bb# as date) - c) * 60
where ~~~

댓글