java - mybatis insert and update index out of bounds error -
I have a mybitalis problem with the updated call. For some reason, I'm getting an index out of an exception exception:
Reason by: com.microsoft.sqlserver.jdbc.SQLServerException: Index 1 is out of range I think the parameter is a type of map or archive. However, I pass it to a single object which I use the ratio of using the # {} syntax. I then call a straightforward update. & lt; Update id = "updateFactory" type statement = "CALLABLE" parameter type = "work order" & gt; Update wo SET factory = '# {factory}' WHERE work_order = '# {work_order}' & lt; / update> I know that the parameters meet with the gates and the setters, but it is still an issue, as a collection that treats the type of nickname dealing with the work order. (It seems that it receives the first index (0), but fails in the next (1 index).
Why could this be so, but no thoughts?
have you tried?
& lt; update id = "updateFactory" parameterTap = "work order "> UPDATE wo SET factory = '# {factory}' WHERE work_order = '# {work_order}' & lt; / update & gt;
Comments
Post a Comment