We're updating the issue view to help you get more done. 

Account for "named parameters" named using a number

Description

Mainly this comes from JPA Criteria queries doing:

1 criteriaBuilder.parameter(String.class, "1")

Because this is a "named paremeter" we render this as :1, but the Antlr grammars define named parameter support as COLON^ identifier, the identifier rule matches normal identifier syntax.

I tried adjusting the grammar rule to also match COLON^ INT_NUM, but that led to recognition failures (which i have not yet had time to triage). Another possibility is to render this as ?1 instead, though that has its own concerns.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major