postgresql插入的问题

时间:2017-07-07 05:06:19

标签: postgresql jdbc spring-mybatis

我想知道解决方法。

可以毫无困难地插入1~5000个插件 但是,我想知道错误发生时的解决方案。 先谢谢你

Cause: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
; SQL []; An I/O error occurred while sending to the backend.; nested exception is org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.] with root cause
java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 67746
<insert id="insertLog" parameterType="java.util.HashMap">
<if test='logList.size != 0'>
    insert into log(
        result,
        path,
        date
    )values
    <foreach collection='logList' item='item' separator=','>
    (
        #{item.result},
        #{item.path},
        #{item.date}
    )
    </foreach>
</if>

并在此处记录表格。!

create table log (no serial primary key, date varchar(50), path varchar(500),result varchar(10));

0 个答案:

没有答案