Language: Java
Label: safe
CWE: CWE-89 \u2014 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.

Code:
    public FilterToSQL createFilterToSQL() {
        MySQLFilterToSQL fts = new MySQLFilterToSQL(delegate.getUsePreciseSpatialOps());
        // see https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_backslash_escapes
        // NOTE: for future enhancement, do not escape backslashes when the NO_BACKSLASH_ESCAPES
        // mode is enabled since that would create an incorrect string in the SQL
        fts.setEscapeBackslash(true);
        return fts;
    }