(val: str)
return "'{0}'".format(val.replace("'", "''"))
ParamEscaper

    https://github.com/dropbox/PyHive/blob/master/pyhive/common.py
ParamEscaper
ParamEscaper
def _escape_presto(val: str) -> str:
    """ParamEscaper

    https://github.com/dropbox/PyHive/blob/master/pyhive/common.py"""
    return "'{0}'".format(val.replace("'", "''"))
def _escape_presto ( val : str ) -> str : return "'{0}'" . format ( val . replace ( "'" , "''" ) )