NamedParameterUtils.parseSqlStatement should parse :{x} style parameter correctly [SPR-16663] #21204
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Zhang Jie opened SPR-16663 and commented
In my opinion, we should parse :{x} style parameter as x is parameter using NamedParameterUtils.parseSqlStatement,
so the condition j - i > 2 is the correct condition, not j - i > 3, because if i is the index of : in :{x}, and j is the index of } in :{x},
j - i == 3 is true.
Affects: 4.3.14, 5.0.4
Issue Links:
Referenced from: pull request #1758, and commits 82cb5db, f3dd22d
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: