qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Robie <jonathan.ro...@redhat.com>
Subject Re: [jira] Updated: (QPID-1766) Implemention of selector using Xquery
Date Mon, 23 Mar 2009 18:35:06 GMT
chenta lee wrote:
> Thank you!!Your explanation is very helpful! I will modify the code ASAP.
> BTW, I didn't handle the type parser very well. Currently I can only handle
> string and integer type. I am thinking maybe we can use the types defined in
> "FieldValue" to create a map and register the corresponding type handler to
> it. How do you think about that?

Yes, I'm afraid I don't handle the incoming data types terribly well 

You may have noticed this comment in my source:

      if (args) {
          FieldTable::ValueMap::const_iterator v = args->begin();
          for(; v != args->end(); ++v) {
              // ### TODO: Do types properly

The right thing to do is to check the AMQP type here and convert to the 
appropriate XQuery type. I'll do that to my source now  and let you know 
when I'm done ...


Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org

View raw message