Обсуждение: (fwd) What should Statement.executeBatch() do with an empty batch?

Поиск
Список
Период
Сортировка

(fwd) What should Statement.executeBatch() do with an empty batch?

От
Rene Pijlman
Дата:
FYI ... I posted this question on the Sun JDBC-interest list.
This affects the PostgreSQL driver as well. Any thoughts?

>Should Statement.executeBatch() reset the list of commands to empty?
>
>The JDBC 2.0 API specification (1) doesn't mention this, but the Java tutorial does (2).
>
>1) http://java.sun.com/j2se/1.3/docs/api/java/sql/Statement.html#executeBatch()
>
>2) http://java.sun.com/docs/books/tutorial/jdbc/jdbc2dot0/batchupdates.html

Regards,
René Pijlman