[oracle] java.sql.SQLException: 부적합한 열 유형
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='skin_img', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #3 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible
iBatis, myBatis 모두 Oracle을 사용할때는
nullable column (null 이 들어가도 되는 column) 을 사용하기 위한 처리를 해줘야 한다.
--> 컬럼 타입을 지정해 줘야 한다는 것.
jdbcType=VARCHAR
jdbcType=NUMERIC
을 사용한다.
예 )
UPDATE [TABLE_NAME]
SET
AAAA = #{aaa, jdbcType=VARCHAR}
WHERE BBB= #{bbb, jdbcType=VARCHAR}