ext-java/src/main/java/do_postgres/PostgresDriverDefinition.java
/**
     * Escape the given value to be used in a SET command.
     * Right now the method only checks if the given value
     * contains only the following characters: a-zA-Z0-9,-
     *
     * @param value Value to escape
     * @return Escaped value which can be safely used in a
     *         SET command.
     */
Escape the given value to be used in a SET command.
Right now the method only checks if the given value
contains only the following characters: a-zA-Z0-9.

@param value Value to escape
@return Escaped value which can be safely used in a
SET command.
Escape the given value to be used in a SET command . Right now the method only checks if the given value contains only the following characters : a - zA - Z0 - 9 . @param value Value to escape @return Escaped value which can be safely used in a SET command .
private String escapeValue(String value) throws SQLException {
        if (!validValue.matcher(value).matches())
            throw new SQLException("Invalid query parameter value: " + value);
        return value;
    }
private String escapeValue ( String value ) throws SQLException { if ( ! validValue . matcher ( value ) . matches ( ) ) throw new SQLException ( "Invalid query parameter value: " + value ) ; return value ; }
Escape the given value to be used in a SET command.
Escape the given value to be used in a SET command .