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

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

spring-projects-issues opened this issue Feb 6, 2018 · 1 comment
in: data status: duplicate


Copy link

@spring-projects-issues spring-projects-issues commented Feb 6, 2018

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(
	at org.springframework.jdbc.core.namedparam.NamedParameterUtils.parseSqlStatement(

Caused by #20887

Affects: 5.0.3

Issue Links:

  • #21017 NamedParameterUtils.isParameterSeparator throws ArrayIndexOutOfBoundsException for non ASCII characters ("duplicates")
  • #20887 NamedParameterJdbcTemplate fails on PostgreSQL array
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 6, 2018

Juergen Hoeller commented

This is effectively a duplicate of #21017. An unfortunate regression indeed; we'll fix it for 5.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: data status: duplicate
None yet

No branches or pull requests

2 participants