[
https://issues.apache.org/jira/browse/QPID-6718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725426#comment-14725426
]
Andrew Stitcher commented on QPID-6718:
---------------------------------------
I'll have to go and look at the SQL grammar that I based the selector grammar
on, but I'm not sure that those number formats are in it.
The lexical cast error is surely wrong though - I'll have to see what the
appropriate error should be.
> parsing errors for integer literals in selectors
> ------------------------------------------------
>
> Key: QPID-6718
> URL: https://issues.apache.org/jira/browse/QPID-6718
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Affects Versions: qpid-cpp-0.34
> Reporter: Gordon Sim
> Assignee: Andrew Stitcher
> Priority: Minor
>
> There are a few integer literals that cause selector parsing to fail or the
> resulting evaluation to be incorrect:
> (a) hexadecimal literals don't seem to be recognised, e.g. 0xFF will result
> in a parse error
> (b) octal literals are evaluated as decimal e.g 077 is interpreted as decimal
> 77 rather than decimal 63
> (c) large numbers fail with a lexical cast error, e.g -9223372036854775808L
> or 9223372036854775807L
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]