presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoDatabaseMetaData.java/PrestoDatabaseMetaData/quoteStringLiteral
class PrestoDatabaseMetaData:    private static void quoteStringLiteral(StringBuilder out, String value)
    {
        out.append('\'');
        for (int i = 0; i < value.length(); i++) {
            char c = value.charAt(i);
            out.append(c);
            if (c == '\'') {
                out.append('\'');
            }
        }
        out.append('\'');
    }