activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (AMQ-1942) Numeric selectors do not work in STOMP
Date Sat, 02 Jul 2011 14:35:29 GMT

     [ 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

        

Mime
View raw message