kidsnote / django-sqllog

[BE] sql log
0 stars 0 forks source link

last_executed_query always returns the string 'None'. #1

Open kncray opened 1 year ago

kncray commented 1 year ago
original_query = 'select * from A'
params = None

last_executed_query = self.db.ops.last_executed_query(self.cursor, original_query, params)

print(last_executed_query == 'None') # True
pip freeze | egrep -e "(Django|mysqlclient)"
Django==1.11.7
mysqlclient==1.3.14
kncray commented 1 year ago

The cause of the above symptoms is related to the following two commits.