블로그 이름

[ERROR] MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list' 본문

개발/오류

[ERROR] MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'

Hide 2024. 12. 13. 19:16

Maria DB에서 예외 발생, 아래는 예외 로그다.

 

ERROR [14:34:46.735] {DefaultQuartzScheduler_Worker-4} (AAAA.java:229) e
com.ibatis.common.jdbc.exception.NestedSQLException: 
--- The error occurred in com/AAAA/common/control/map/maria/AAAA.xml.  
--- The error occurred while applying a parameter map.  
--- Check the AAAA-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: cohttp://m.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'
at c//m.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
at cohm.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:404)
at cm.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:58)
~~~
Caused by: cohttp://m.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'SYSDATE' in 'field list'

 

 

oracle에서는 sysdate를 사용하지만

maria에서는 현재 시각을 사용하는 예약어로 NOW()를 사용한다.

 

NOW()로 변경 후 해결