Skip to content

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

Closed

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:

Activity

  1. spring-projects-issues commented on Feb 6, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

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

  2. added
    type: bug
    in: data
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datastatus: duplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions