How do I escape single quotes in SQL queries
Hi
I am using EclipseLink + EJB 3.0.
When single quote ( ' ) is entered as search criteria for JPA query, it throws exception.
As specified in the bolow link , its generic sql problem.
http://it.toolbox.com/wiki/index.php/How_do_I_escape_single_quotes_in_SQL_queries%3F
If single-quote is used to escape a single-quote, it might fail in mySQL (which use a backslash as the escape character).
Please suggest generic way to resolve this issue, so that it works across DBMS.
Thanks
Tilak