Skip to content

Allow to specify autocommit flag to be explicitly set on AbstractCursorItemReader's connection [BATCH-2661] #943

Closed
@spring-projects-issues

Description

@spring-projects-issues

Michael Minella opened BATCH-2661 and commented

The use case was to use a JdbcCursorItemReader with PostgreSQL (nothing fancy here).
From https://jdbc.postgresql.org/documentation/94/query.html, section "Getting results based on a cursor", the connection must not be in auto commit mode.
But JdbcCursorItemReader does not allow to explicity set connection mode to autoCommit = false.

As discussed in the Spring Boot PR, configuring the JDBC pool to force all connection to autoCommit=false is not an optimal way to workaround the problem.


Affects: 4.0.0.RC1

Reference URL: spring-projects/spring-boot#7866

Referenced from: pull request #446

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions