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

Convert IDs in bulk message deletes to strings for DB query #139

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

jb3
Copy link
Member

@jb3 jb3 commented Mar 26, 2024

Convert IDs into strings to match the format stored in the database to prevent us receiving mismatching type errors (big int vs. character varying).

Prevents us from experiencing this error:

2024-03-15T01:56:31.427876929Z sqlalchemy.dialects.postgresql.asyncpg.AsyncAdapt_asyncpg_dbapi.ProgrammingError: <class 'asyncpg.exceptions.UndefinedFunctionError'>: operator does not exist: character varying = bigint

Convert IDs into strings to match the format stored in the database
to prevent us receiving mismatching type errors (big int vs. character
varying).
@jb3 jb3 merged commit 06ae7a2 into main Mar 26, 2024
4 checks passed
@jb3 jb3 deleted the jb3/fix-stringed-ids branch March 26, 2024 01:37
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

Successfully merging this pull request may close these issues.

2 participants