This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Having trouble making a query against Amazon SimpleDB when the query contains a question mark. Example: uow.Entity.Any(e => e.Property == "value?") Fails with a "The specified query expression syntax is not valid." exception. |
|
|
I can't reproduce this I'm afraid -- I am making a query containing a question mark and it is working okay for me. Could you send a complete sample please? Thanks! |
|
|
Is it possible this only fails when the question mark appears at the end of the query?
"value?" instead of "?value" or "val?ue"
If you still can't reproduce the issue I can package up a sample.
|
|
|
This was my test: using (IUnitOfWork uow = Context.CreateUnitOfWork()) As you can see the question mark is at the end, just as in your sample, but this passed okay. (I even tried it with the string "value?" in the Any clause, just in case there was something really weird going on, but same result!) |
|
|
Ivan I was incorrect about the question mark. I've looked into this further and the error happens when there is a single quote in the query.
Example: "My X- box 360 console show's some 3 red lines around the consoles Button Why and how ?"
|
|
|
We had a bug here with escaping query delimiters (the single-quote character). This will be fixed in nightly builds dated 9 May 2009 and above, available from about 1430 GMT. Thanks for helping us track this down. |
|