We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Don't sure if it's in Django 1.9 only. So let's have a code with custom query execution:
with connection.cursor() as c: c.execute(query)
Then we've got an exception:
/site-packages/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) IndexError: tuple index out of range
The problem is that in django code execution signature is:
def execute(self, sql, params=None): self.db.validate_no_broken_transaction() with self.db.wrap_database_errors: if params is None: return self.cursor.execute(sql) else: return self.cursor.execute(sql, params)
And in debug-toolbar is:
def execute(self, sql, params=()): return self._record(self.cursor.execute, sql, params)
Also same issue goes with callproc method
callproc
I'll also make PR to fix this if you don't mind :)
The text was updated successfully, but these errors were encountered:
jazzband#844 fix tuple index out of range error
3e8cdf1
Merge pull request #845 from valentjedi/patch-1
f243b5c
#844 fix tuple index out of range error
b38d47d
Merge pull request jazzband#845 from valentjedi/patch-1
cd2d890
No branches or pull requests
Hi! Don't sure if it's in Django 1.9 only.
So let's have a code with custom query execution:
Then we've got an exception:
The problem is that in django code execution signature is:
And in debug-toolbar is:
Also same issue goes with
callproc
methodI'll also make PR to fix this if you don't mind :)
The text was updated successfully, but these errors were encountered: