1
0
Fork 0

Encode SQL statement as bytes in 0046_reviewrating database migration

An attempt to avoid a psycopg2 error about 'connection.encoding' not existing.
This commit is contained in:
Reinout Meliesie 2025-03-12 16:38:22 +01:00
parent db34a9575b
commit 4b433e285d
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -23,7 +23,7 @@ def convert_review_rating(app_registry, schema_editor):
cursor,
"""
INSERT INTO bookwyrm_reviewrating(review_ptr_id)
VALUES %s""",
VALUES %s""".encode(),
values,
)