mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Readded comment about the default params of cursor.execute().
It was removed in in 728548e483.
This commit is contained in:
committed by
Mariusz Felisiak
parent
3166880301
commit
6d37c089ae
@@ -80,6 +80,7 @@ class CursorWrapper:
|
|||||||
self.db.validate_no_broken_transaction()
|
self.db.validate_no_broken_transaction()
|
||||||
with self.db.wrap_database_errors:
|
with self.db.wrap_database_errors:
|
||||||
if params is None:
|
if params is None:
|
||||||
|
# params default might be backend specific.
|
||||||
return self.cursor.execute(sql)
|
return self.cursor.execute(sql)
|
||||||
else:
|
else:
|
||||||
return self.cursor.execute(sql, params)
|
return self.cursor.execute(sql, params)
|
||||||
|
|||||||
Reference in New Issue
Block a user