|
Re: Strange executing batch: msg#00186db.postgresql.jdbc
Greetings, IB> Class.forName("org.postgresql.Driver"); IB> Connection c = DriverManager.getConnection("jdbc:postgresql:...."); IB> PreparedStatement p = c.prepareStatement("insert into test(test) values(?)"); IB> c.setAutoCommit(false); IB> for (int i = 0; i < 1000; i++) { IB> p.setString(1, "test"+i); IB> p.addBatch(); IB> } IB> p.executeBatch(); IB> If at executing executeBatch() on 500 statement error is arised ,that IB> for some reason first 499 statement are committed. Any suggestions/thoughts on the question? I'm not sure this is a JDBC issue but the problem looks dangerous. -- Alexander V. Morokhovets +7 3832 132528 Shamrock Games efdi@xxxxxxxxxxxxxxxxx http://www.shamrock-games.ru ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: patch: add a finalizer to AbstractJdbc1Statement: 00186, Paul Thomas |
|---|---|
| Next by Date: | Re: patch: add a finalizer to AbstractJdbc1Statement: 00186, Oliver Jowett |
| Previous by Thread: | Strange executing batchi: 00186, Ilya Bulatov |
| Next by Thread: | Fwd: [HACKERS] 7.4 LOG: invalid message length: 00186, Arturo Pérez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |