Posted: Mon Jan 14, 2008 3:22 pm Post subject: Problem Using CAST function in message mappings
Apprentice
Joined: 11 Apr 2007 Posts: 30
Has anyone ever tried using the CAST function in message broker v6?
I have not used it before. I am trying to CAST a character string into Date format as follows: CAST ($source AS DATE) and getting an error. I am also prefixing this with esql and it shows up as follows in the message map rule: esql: CAST ($source AS DATE). This is the error I am getting:
"Invalid expression syntax. Expression sequence "esql: CAST ($source AS DATE) only partially parsed to column 9. A resultant expression would therefore only represent the sequence esql:cast. "
Mapping expressions do not use the same functions as ESQL, even the ESQL functions are not all available in Mapping.
Cast, in particular, isn't available in the mapping node.
You can call your own ESQL function, that will do the cast. Or you can look at the other prefixes available for mapping expressions... I think the casts are under xsd... _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum