Closed vi3k6i5 closed 1 year ago
As per PEP 249, there are five ways to mark parameters in an SQL query. My understanding is that a DB-API driver needs to support at least one, which for Spanner is format
. So this isn't technically a bug.
However, I do think that we should try add support for the three suggested options: numeric
, named
, and pyformat
.
Seems pyformat was going to be supported, but something went wrong (see the method). Trying to make it work correctly...
Linking for more context: https://github.com/googleapis/python-spanner-django/issues/343
Insert sql with parameter style
%(name)s
is failing.Environment details
python --version
3.8pip --version
Steps to reproduce
Code example
Stack trace