Skip to content

[Regression] NamedParameterUtils::parseSqlStatement cannot parse chinese param name [SPR-16473] #21018

@spring-projects-issues

Description

@spring-projects-issues

Yanming Zhou opened SPR-16473 and commented

NamedParameterUtils.parseSqlStatement("select username from user where username=:用户名");
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 29992
	at org.springframework.jdbc.core.namedparam.NamedParameterUtils.isParameterSeparator(NamedParameterUtils.java:394)
	at org.springframework.jdbc.core.namedparam.NamedParameterUtils.parseSqlStatement(NamedParameterUtils.java:141)

Caused by #20887


Affects: 5.0.3

Issue Links:

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions