'last_executed_query() returns a string.'

def test_query_encoding(self):

    data = RawData.objects.filter(raw_data='\x00F        \xfe').extra(select={'f\xc3\xb6\xc3\xb6': 1})
    (sql, params) = data.query.sql_with_params()
    cursor = data.query.get_compiler('default').execute_sql(CURSOR)
    last_sql = cursor.db.ops.last_executed_query(cursor, sql, params)
    self.assertIsInstance(last_sql, str)
