@Override
    public String escapeLiteral(String str) {
        StringBuilder builder = new StringBuilder();
        for (char ch : super.escapeLiteral(str).toCharArray()) {
            if (ch == '\\') {
                builder.append("\\");
            }
            builder.append(ch);
        }
        return builder.toString();
    }
{@code MySQLTemplates} is an SQL dialect for MySQL

<p>tested with MySQL CE 5.1 and 5.5</p>

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/MySQLTemplates.java