Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

dbapi/Cursor: fix execute default args value#34

Merged
odeke-em merged 1 commit intomasterfrom
fix-Cursor.execute-signature
Nov 11, 2019
Merged

dbapi/Cursor: fix execute default args value#34
odeke-em merged 1 commit intomasterfrom
fix-Cursor.execute-signature

Conversation

@odeke-em
Copy link
Copy Markdown
Contributor

Reported by @timgraham while working on the
Django adapter, the prior signature of:

def execute(self, *args, **kwargs)

was passing args=() into

self.__do_execute_non_update(sql, *args, **kwargs)

so changed it to

def execute(self, args=None)

Reported by @timgraham while working on the
Django adapter, the prior signature of:

    def execute(self, *args, **kwargs)

was passing args=() into

    self.__do_execute_non_update(sql, *args, **kwargs)

so changed it to

    def execute(self, args=None)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants