RE: How to turn on escaping for named queries

2012-05-15 Thread Durchholz, Joachim
But that's not very useful unless you're doing something like phpMyAdmin. Or if you implement something like a query rewriting layer. -Original Message- From: Simran Narula [mailto:snar...@avoka.com] Sent: Tuesday, May 15, 2012 1:54 AM To: user@cayenne.apache.org Subject: RE: How

RE: How to turn on escaping for named queries

2012-05-14 Thread Simran Narula
resultMaps = getDataContext().performQuery(query); List results = new ArrayList(); .. I am looking to escape single quotes only ( ' ) Thanks -Original Message- From: Andrus Adamchik [mailto:and...@objectstyle.org] Sent: Monday, 14 May 2012 6:00 PM To: user@cayenne.apache.org Subject: Re:

Re: How to turn on escaping for named queries

2012-05-14 Thread Andrus Adamchik
Hi, You do not indicate what type of queries you have (SelectQuery, SQLTemplate, etc?) Also could you give an example of what characters you'd like to escape? There is a good chance the answer will be to escape it manually, but I was wondering about the use case. Andrus On May 7, 2012, at 6:

How to turn on escaping for named queries

2012-05-06 Thread Simran Narula
Hi, I have a bunch of named queries in my application.map.xml... And cayenne does not seems to be escaping the parameter values when these queries are executed Is there a way I can SWITCH ON escaping for these named queries in cayenne or is there no way and I will have to manually escape the p