def visit_DATETIME(self, type_, **kw):
    if ((not isinstance(type_, _DateTimeMixin)) or type_.format_is_text_affinity):
        return super(SQLiteTypeCompiler, self).visit_DATETIME(type_)
    else:
        return 'DATETIME_CHAR'
def visit_DATETIME(self, type_, **kw):
    if ((not isinstance(type_, _DateTimeMixin)) or type_.format_is_text_affinity):
        return super(SQLiteTypeCompiler, self).visit_DATETIME(type_)
    else:
        return 'DATETIME_CHAR'