mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-04-26 08:44:16 +08:00
a1445291fd
* Allow passing heterogeneous list or tuple to RunSQL. The sqls to be executed do not necessarily need to be a homogeneous list or tuple containing only lists or tuples or strs. It can be a mix of everything. Signed-off-by: Zixuan James Li <p359101898@gmail.com> * Support passing dict as a sql param. The 2-item tuple for `sql` can have a `dict` as the second item for parameters. This behavior is the same as using `cursor.execute` for backends except SQLite. Relevant implementation: https://github.com/django/django/blob/5f760025004bdb02f9844011033459c30347f215/django/db/migrations/operations/special.py#L119-L133 Signed-off-by: Zixuan James Li <p359101898@gmail.com> * Add a test case for RunSQL. Signed-off-by: Zixuan James Li <p359101898@gmail.com>