Skip to content
New issue

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

django: iexact lookup with Transform expression crashes #612

Closed
vi3k6i5 opened this issue Apr 22, 2021 · 1 comment · Fixed by #628
Closed

django: iexact lookup with Transform expression crashes #612

vi3k6i5 opened this issue Apr 22, 2021 · 1 comment · Fixed by #628
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone

Comments

@vi3k6i5
Copy link
Contributor

vi3k6i5 commented Apr 22, 2021

Author.objects.filter(name__upper__iexact="abc")

======================================================================

  return rhs_sql % lhs_sql, params

E TypeError: not enough arguments for format string

django_spanner/lookups.py:106: TypeError

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Apr 22, 2021
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 25, 2021
@vi3k6i5 vi3k6i5 added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label May 4, 2021
@c24t c24t added this to the v2.2.2b0 milestone May 14, 2021
@c24t c24t added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels May 14, 2021
vi3k6i5 added a commit to vi3k6i5/python-spanner-django that referenced this issue May 20, 2021
vi3k6i5 added a commit to vi3k6i5/python-spanner-django that referenced this issue May 20, 2021
vi3k6i5 added a commit that referenced this issue May 20, 2021
…direct value and a transform function is involved (#628)

* fix: lint_setup_py was failing in Kokoro is not fixed

* fix: iexact lookup with Transform expression chash issue #612
@vi3k6i5
Copy link
Contributor Author

vi3k6i5 commented May 20, 2021

Resolved in #628

@vi3k6i5 vi3k6i5 closed this as completed May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
3 participants