Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
URL escaped characters in json values break PUT operation #32
The error message I get when looking at a result is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE '&price=%3C=300000&price=200001&lat=40.1',endpoint = 'firstname.lastname@example.org',las' at line 1 :: UPDATE userdb.saved_search SET api_where_clause LIKE '&price=%3C=300000&price=200001&lat=40.1',endpoint = 'email@example.com',last_run = '2013-01-10 10:00:00.0',search_name = 'home search lat price108492551',alert_type_id = 2 WHERE saved_search_id = 981
It looks like the update SQL parsing is getting confused by the % in %3C, which is actually a URL escaped > (or maybe <, I lose track).
Here is a url to the test case, which I put in the json tests directory.