dbt/adapters/trino/connections.py
def _escape_value(cls, value):
        """A not very comprehensive system for escaping bindings.

        I think "'" (a single quote) is the only character that matters.
        """
        numbers = (decimal.Decimal, int, float)
        if value is None:
            return "NULL"
        elif isinstance(value, str):
            return "'{}'".format(value.replace("'", "''"))
        elif isinstance(value, numbers):
            return value
        elif isinstance(value, datetime):
            time_formatted = value.strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
            return "TIMESTAMP '{}'".format(time_formatted)
        elif isinstance(value, date):
            date_formatted = value.strftime("%Y-%m-%d")
            return "DATE '{}'".format(date_formatted)
        else:
            raise ValueError("Cannot escape {}".format(type(value)))
A not very comprehensive system for escaping bindings.

        I think "'" (a single quote) is the only character that matters.
        
A not very comprehensive system for escaping bindings.
I think "'" (a single quote) is the only character that matters.
A not very comprehensive system for escaping bindings . I think " ' " ( a single quote ) is the only character that matters .
def _escape_value(cls, value):
        numbers = (decimal.Decimal, int, float)
        if value is None:
            return "NULL"
        elif isinstance(value, str):
            return "'{}'".format(value.replace("'", "''"))
        elif isinstance(value, numbers):
            return value
        elif isinstance(value, datetime):
            time_formatted = value.strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
            return "TIMESTAMP '{}'".format(time_formatted)
        elif isinstance(value, date):
            date_formatted = value.strftime("%Y-%m-%d")
            return "DATE '{}'".format(date_formatted)
        else:
            raise ValueError("Cannot escape {}".format(type(value)))
def _escape_value ( cls , value ) : numbers = ( decimal . Decimal , int , float ) if value is None : return "NULL" elif isinstance ( value , str ) : return "'{}'" . format ( value . replace ( "'" , "''" ) ) elif isinstance ( value , numbers ) : return value elif isinstance ( value , datetime ) : time_formatted = value . strftime ( "%Y-%m-%d %H:%M:%S.%f" ) [ : - 3 ] return "TIMESTAMP '{}'" . format ( time_formatted ) elif isinstance ( value , date ) : date_formatted = value . strftime ( "%Y-%m-%d" ) return "DATE '{}'" . format ( date_formatted ) else : raise ValueError ( "Cannot escape {}" . format ( type ( value ) ) )
A not very comprehensive system for escaping bindings.
A not very comprehensive system for escaping bindings .
"""A not very comprehensive system for escaping bindings.

        I think "'" (a single quote) is the only character that matters.
        """
cls
value