Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong condition for Types.ARRAY in PreparedStatementCreatorFactory class #33641

Open
sDismuss opened this issue Oct 3, 2024 · 1 comment
Open
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on

Comments

@sDismuss
Copy link

sDismuss commented Oct 3, 2024

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

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 3, 2024
@jhoeller jhoeller added the in: data Issues in data modules (jdbc, orm, oxm, tx) label Oct 7, 2024
@sdeleuze
Copy link
Contributor

sdeleuze commented Oct 7, 2024

Hi, please provide a self-contained reproducer (for example a Spring Boot project with a JUnit test) attached to this issue or a related link to a repository.

@sdeleuze sdeleuze added the status: waiting-for-feedback We need additional information before we can continue label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

No branches or pull requests

4 participants