activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Szerdahelyi (JIRA)" <>
Subject [jira] [Commented] (AMQ-1942) Numeric selectors do not work in STOMP
Date Wed, 13 Apr 2011 15:14:07 GMT


Andras Szerdahelyi commented on AMQ-1942:

Thanks, i will, and it would indeed make a great addition to the spec.. However, i see this
particular problem as being outside the JMS ( specifically, what subset of SQL92 is used for
selectors - if that is defined in there at all ) and STOMP specifications. I haven't had a
look yet, but i assume all custom (non-JMS) message headers from a STOMP message are being
saved into a string type property. Wouldn't it make sense to try and make an educated guess
about the intended type of the STOMP header based on its content? At least as far as numeric
and string types go. ( This functionality could depend on configuration to isolate a possible
performance hit )

in the mean time i'll familiarize myself with the STOMP transport, maybe i can come up with
a patch to better illustrate this ( if it is at all feasible )


> Numeric selectors do not work in STOMP
> --------------------------------------
>                 Key: AMQ-1942
>                 URL:
>             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:

View raw message