def escape_single_quotes_sql(expr):
    """ Escape the single quotes of the given string.

        Args: 
            expr: the string to escape.

        Returns:
            expr with quotes escaped.
    """
    return expr.replace("'", "''")