ORA-01461:只能插入LONG值才能插入LONG

时间:2014-06-05 09:04:21

标签: java sql oracle sql-update ibatis

我正在使用我的应用程序中的iBATIS。抛出此错误:

operation; uncategorized SQLException for SQL []; SQL state [72000]; error code [1461];   
--- The error occurred in com/syngenta/panda/dao/sqlmap/shared/Task.xml.  
--- The error occurred while applying a parameter map.  
--- Check the TaskSQLMap.updateTask-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column

我正在使用的查询是

UPDATE TASK
        SET
        TIME_CONSUMED = #timeConsumed#, TIME_SUBMITTED = #timeSubmitted# , TIME_COMPLETED = #timeCompleted# , TASK_STATUS_UID = #status.id#, FAILURE_REASON = #failureReason#
        WHERE
        TASK_UID = #id#

插入的所有属性都没有long类型,但是更新语句中没有包含另一个属性的long类型。并且表中的所有列都没有LONG类型。你能帮忙吗

0 个答案:

没有答案