When executing a batch statement that has two statements in it, we get confused and bail out with a "Too many update results" message. This message construction was producing an ArrayIndexOutOfBoundsException because it wasn't checking bounds properly.
When executing a batch statement that has two statements in it, we
get confused and bail out with a "Too many update results" message.
This message construction was producing an
ArrayIndexOutOfBoundsException because it wasn't checking bounds
properly.

Reported by Alan Stange.

element-doo/postgresql-jdbc,element-doo/postgresql-jdbc