Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
postgresql插入的问题_Postgresql_Jdbc_Spring Mybatis - Fatal编程技术网

postgresql插入的问题

postgresql插入的问题,postgresql,jdbc,spring-mybatis,Postgresql,Jdbc,Spring Mybatis,我想知道这个问题的解决办法 1~5000个插入件是可能的,没有问题 但是,我想知道错误出现时的解决方案。 首先谢谢大家 可以粘贴表结构和导致错误的行吗。它显示超出范围的整数作为2字节值:67746,您确定您没有尝试在较小的列中插入较大的值。感谢您的回答我将添加mybatis insert Code10000列表以映射形式作为参数传递。。。请允许我听听您的建议。哪个版本的PostgreSQL和哪个版本的PostgreSQL JDBC驱动程序?PostgreSQL-42.1.1.jre6//Post

我想知道这个问题的解决办法

1~5000个插入件是可能的,没有问题 但是,我想知道错误出现时的解决方案。 首先谢谢大家


可以粘贴表结构和导致错误的行吗。它显示
超出范围的整数作为2字节值:67746
,您确定您没有尝试在较小的列中插入较大的值。感谢您的回答我将添加mybatis insert Code10000列表以映射形式作为参数传递。。。请允许我听听您的建议。哪个版本的PostgreSQL和哪个版本的PostgreSQL JDBC驱动程序?PostgreSQL-42.1.1.jre6//PostgreSQL 9.4.1212.jar谢谢您的帮助!
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));