시스템아 미안해

mybatis-mariaDB parameter set 에러 본문

error diary

mybatis-mariaDB parameter set 에러

if else 2022. 11. 30. 15:24

예외 

[Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException

The error occurred while setting parameters

를 던져줬다:(

 

<update id="updateDeal" parameterType="java.util.Map">
	UPDATE deal SET
		(
		strProcCode = #{strProcCode}
		)
	where intIdx = #{intDidx} 
</update>

 

 

괄호때문에 생긴 에러였다 =ㅇ=

insert에서 괄호 쓰다가 update에서 무의식적으로 괄호쓰면 안된다는걸 인지하자..! 

<update id="updateDeal" parameterType="java.util.Map">
	UPDATE deal SET
		strProcCode = #{strProcCode}
	where intIdx = #{intDidx} 
</update>