Skip to content

Wrong condition for Types.ARRAY in PreparedStatementCreatorFactory class #33641

@sDismuss

Description

@sDismuss

Hello, team

Now I'm working with spring-jdbc library. And I wanted to write a query which using an array of strings as conditional parameters.
For this task I was trying to use Types.Array. But in the code I found out that if we're using Types.Array then we are simply missing the logic we want to use.
Maybe I'm wrong, or maybe you've already discovered this defect. But I decided to wrote you about this

https://github.com/spring-projects/spring-framework/blame/02094b258c15e72d7d4c94b58ed4d0b743b6181a/spring-jdbc/src/main/java/org/springframework/jdbc/core/PreparedStatementCreatorFactory.java#L274

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions