mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
committed by
Tim Graham
parent
888c1e9bfe
commit
d1bab24e01
@@ -411,9 +411,7 @@ class LastExecutedQueryTest(TestCase):
|
||||
self.assertIn(Reporter._meta.db_table, sql)
|
||||
|
||||
def test_query_encoding(self):
|
||||
"""
|
||||
last_executed_query() returns an Unicode string
|
||||
"""
|
||||
"""last_executed_query() returns a string."""
|
||||
data = RawData.objects.filter(raw_data=b'\x00\x46 \xFE').extra(select={'föö': 1})
|
||||
sql, params = data.query.sql_with_params()
|
||||
cursor = data.query.get_compiler('default').execute_sql(CURSOR)
|
||||
|
||||
Reference in New Issue
Block a user