Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Conversation

@anistor
Copy link
Contributor

@anistor anistor commented Jun 26, 2014

...tes

Single quotes embedded in a string are actually represented by two single quotes.
They are properly recognized by the lexer grammar but the output token should contain a single quote not two. (See spec doc Java Persistence 2.1, Final Release section 4.6.1)

Jira: https://hibernate.atlassian.net/browse/HQLPARSER-43

(this fix is needed for 1.0.x too, backport is in anistor:HQLPARSER-43_10x)

…quotes

Single quotes embedded in a string are actually represented by two single quotes.
They are properly recognized by the lexer grammar but the output token should contain a single quote not two.
@anistor
Copy link
Contributor Author

anistor commented Jun 26, 2014

since I'm not an antlr expert... pls take my fix with a grain of salt :)

@anistor
Copy link
Contributor Author

anistor commented Jun 30, 2014

@gunnarmorling Any chance to review it this week? Thanks!

@gunnarmorling
Copy link
Member

Yes, I'll look into it this week. Thanks for the reminder :)

2014-06-30 13:07 GMT+02:00 Adrian Nistor notifications@github.com:

@gunnarmorling https://github.com/gunnarmorling Any chance to review it
this week? Thanks!


Reply to this email directly or view it on GitHub
#24 (comment)
.

@gunnarmorling
Copy link
Member

Looks good to me; Going to merge it in a minute.

@gunnarmorling gunnarmorling merged commit b48a4a3 into hibernate:master Jun 30, 2014
@gunnarmorling
Copy link
Member

Merged; Also merged HQLPARSER-43_10x to 1.0.x.

@anistor anistor deleted the HQLPARSER-43_master branch June 30, 2014 16:35
@anistor
Copy link
Contributor Author

anistor commented Jun 30, 2014

Thanks @gunnarmorling!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants