presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoPreparedStatement.java/PrestoPreparedStatement/formatStringLiteral
class PrestoPreparedStatement:    private static String formatStringLiteral(String x)
    {
        return "'" + x.replace("'", "''") + "'";
    }