You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Hiram Chirino (JIRA)" <ji...@apache.org> on 2011/07/02 16:35:29 UTC

[jira] [Reopened] (AMQ-1942) Numeric selectors do not work in STOMP

     [ https://issues.apache.org/jira/browse/AMQ-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiram Chirino reopened AMQ-1942:
--------------------------------


Hi,

First off, the STOMP spec does not define how selectors work.  So this is purely a ActiveMQ extension to the STOMP spec and I think we should be able to make it just work as expected even if the type info is not part of each header.  

The approach that Apollo took was to auto convert String header values to right numeric type in the comparison operation.

> Numeric selectors do not work in STOMP
> --------------------------------------
>
>                 Key: AMQ-1942
>                 URL: https://issues.apache.org/jira/browse/AMQ-1942
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.1.0
>            Reporter: Marc Siegel
>             Fix For: NEEDS_REVIEWED
>
>   Original Estimate: 20h
>  Remaining Estimate: 20h
>
> JMS SQL92 numeric selectors, such as 
>   - < > <= >=
>   - BETWEEN val AND val
> Fail to work via STOMP.
> Possible solutions:
>   1.  String Operands to numeric selector operators are converted to Numeric types
>        - only in STOMP?
>   2.  Explicit casting to SQL92 Numeric types becomes supported in selectors, ie
>        - ( INTEGER(field) <= 5)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira