mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix incorrect error message when database CTYPE was set incorrectly. (#7760)
This commit is contained in:
parent
8718021469
commit
244dbb04f7
1
changelog.d/7760.bugfix
Normal file
1
changelog.d/7760.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix incorrect error message when database CTYPE was set incorrectly.
|
@ -92,7 +92,7 @@ class PostgresEngine(BaseDatabaseEngine):
|
|||||||
errors.append(" - 'COLLATE' is set to %r. Should be 'C'" % (collation,))
|
errors.append(" - 'COLLATE' is set to %r. Should be 'C'" % (collation,))
|
||||||
|
|
||||||
if ctype != "C":
|
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:
|
if errors:
|
||||||
raise IncorrectDatabaseSetup(
|
raise IncorrectDatabaseSetup(
|
||||||
|
Loading…
Reference in New Issue
Block a user