Re: BatchUpdate exception

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BatchUpdate exception
Дата
Msg-id Pine.BSO.4.64.0712060446210.19865@leary.csoft.net
обсуждение исходный текст
Ответ на Re: BatchUpdate exception  ("Kranti K K Parisa [GetSet-India]" <kranti.parisa@gmail.com>)
Список pgsql-jdbc

On Thu, 6 Dec 2007, Kranti K K Parisa [GetSet-India] wrote:

> I realized it after posting it and then i have changed it to the following
>
> CallableStatement proc=null;
>        try{
>            for (int i=0;i<200;i++){
>                for(int j=0;j<4;j++){
>                    proc=con.prepareCall("{call test_function()}");

You're still doing the exact same thing, initializing proc inside the
loop.  You need to do this once outside the loops.

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Kranti K K Parisa [GetSet-India]"
Дата:
Сообщение: Re: BatchUpdate exception
Следующее
От: "Usama Dar"
Дата:
Сообщение: Re: Connection attempt hangs when server is unresponsive