0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-02 18:59:04 +02:00

Fix incorrect error message when database CTYPE was set incorrectly. (#7760)

This commit is contained in:
Richard van der Hoff 2020-07-01 13:56:16 +01:00 committed by GitHub
parent 8718021469
commit 244dbb04f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/7760.bugfix Normal file
View file

@ -0,0 +1 @@
Fix incorrect error message when database CTYPE was set incorrectly.

View file

@ -92,7 +92,7 @@ class PostgresEngine(BaseDatabaseEngine):
errors.append(" - 'COLLATE' is set to %r. Should be 'C'" % (collation,))
if ctype != "C":
errors.append(" - 'CTYPE' is set to %r. Should be 'C'" % (collation,))
errors.append(" - 'CTYPE' is set to %r. Should be 'C'" % (ctype,))
if errors:
raise IncorrectDatabaseSetup(