Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix syntax error in run_upgrade for schema 57 #6728

Merged
merged 5 commits into from
Jan 17, 2020

Conversation

u1-liquid
Copy link
Contributor

Fixes #6727
Related #6655

#6727 (comment)

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! So the underlying problem here is that postgres and sqlite have different formats for their SQL parameters (sqlite use ? but postgres uses %s). This is not usually a problem because we do a translation for postgres to convert ? to %s, but (for whatever reason) we don't do this for schema deltas, and so need to be done manually.

We still need your changes as well since we do still need to move the `%' out of the SQL to stop postgres from trying to understand it.

…_membership.py

Co-Authored-By: Erik Johnston <erikj@jki.re>
@erikjohnston
Copy link
Member

Thank you again!

@erikjohnston erikjohnston merged commit 722b4f3 into matrix-org:develop Jan 17, 2020
@u1-liquid u1-liquid deleted the patch-1 branch January 17, 2020 14:35
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '722b4f302':
  Fix syntax error in run_upgrade for schema 57 (#6728)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants