spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
55.27k stars 37.61k forks source link

countParameterPlaceholders bug [SPR-5] #4740

Closed spring-projects-issues closed 20 years ago

spring-projects-issues commented 20 years ago

Tom Lauren opened SPR-5 and commented

The countParameterPlaceholders method of the org.springframework.jdbc.core.support.JdbcUtils class does not correctly handle queries that have the following substring:

?+?

The "?" marker must be followed by a space or a ")". To get by, one must modify all such sql portions to be like the following:

? +?

or

? + ?


Affects: 1.0 M3

spring-projects-issues commented 20 years ago

Thomas Risberg commented

I have fixed this - it now counts all placeholders that are not inside a character literal, without worrying about any separators between the placeholders.

spring-projects-issues commented 20 years ago

Dmitriy Kopylenko commented

Reopened in order to change the appropriate component

spring-projects-issues commented 20 years ago

Dmitriy Kopylenko commented

Changed from SpringCORE to SpringDA. We need to start using appropriate components.

spring-projects-issues commented 20 years ago

Dmitriy Kopylenko commented

Re-close

spring-projects-issues commented 20 years ago

Thomas Risberg commented

Re-opened to switch fixed release to M4

spring-projects-issues commented 20 years ago

Thomas Risberg commented

Close this issue again.