Commit process of UPDATE clause fails #179
Labels
api: spanner
Issues related to the googleapis/python-spanner-sqlalchemy 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.
If you try to commit an UPDATE (and DELETE) clause for an existing row, you will get an error.
This issue(#121) may be relevant.
A minimal example is shown below.
Environment details
Steps to reproduce
init.sh
, create virtualenv using pipenv.$ pipenv shell
to enter virtualenv.$ cp .env.example .env
and$ vi .env
to add environment variables such as project ID, spanner instance ID, database ID, and credential json file path.You need to create a Spanner instance beforehand and then create a database using Google standard SQL.
$ ./run.py
.The first time you run it, it will only perform INSERT, so no error will occur.
$ ./run.py
again.An error occurs in session.commit to existing row (because rowcount is not implemented).
cf. Error log when running run.py for the second time in my environment
The text was updated successfully, but these errors were encountered: