Skip to content

PreparedStatement executeBatch returns number of rows regardless on how many failed #351

@jorge-lavin

Description

@jorge-lavin

executeBatch() method does return an int[] that seems to be filled with all ones regardless on many of the rows in the PreparedStatement went well.

Reference: https://github.com/yandex/clickhouse-jdbc/blob/master/src/main/java/ru/yandex/clickhouse/ClickHousePreparedStatementImpl.java#L365

Is there any plan to modify this behaviour? So that int[] does contain information on how many of the rows went well and how many did not?

Kind regards

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions