jdbc batch insert - Mailing list pgsql-jdbc

From Sriram Dandapani
Subject jdbc batch insert
Date
Msg-id 6992E470F12A444BB787B5C937B9D4DF060E5BB1@ca-mail1.cis.local
Whole thread Raw
Responses Re: jdbc batch insert  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc

Hi

 

I have a problem where the batch inserts behave as if the transactions were done on a single row by single row basis. When I check the return value of the batch update

 

int[]  updateStatus = preparedStatement.executeBatch();

 

I get as many array entries as the number of rows inserted.

 

I use postgres 8.1.2 with the 8.1.404 driver.

pgsql-jdbc by date:

Previous
From: "William Ponce"
Date:
Subject: Problem with driver JDBC
Next
From: "Guy Rouillier"
Date:
Subject: Re: Problem with driver JDBC