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

Cache upserting sqlite version "syntax error" #51

Open
michaelwood opened this issue Oct 19, 2023 · 0 comments
Open

Cache upserting sqlite version "syntax error" #51

michaelwood opened this issue Oct 19, 2023 · 0 comments

Comments

@michaelwood
Copy link
Member

We make use of multiple ON CONFLICT in our cache update mechanism https://github.com/ThreeSixtyGiving/datagetter/blob/master/getter/cache.py#L87

The syntax was generalized to permit multiple ON CONFLICT clauses and to allow DO UPDATE resolution without a conflict target in SQLite version 3.35.0 (2021-03-12). https://www2.sqlite.org/matrix/lang_upsert.html

The datastore has version 3.31.1

I'm not sure how easily upgrade able this is since sqlite3 is part of python's core though it's a sql statement not any api or bindings issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant