mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 05:04:38 +00:00
Fix postgres on _get_profile_updates_for_user_and_fields_txn when empty fields
This commit is contained in:
@@ -490,7 +490,7 @@ class ProfileWorkerStore(SQLBaseStore):
|
||||
txn: LoggingTransaction,
|
||||
) -> list[ProfileUpdate]:
|
||||
if field_names_empty_means_all_fields:
|
||||
field_clause = "pu.field_name NOT NULL"
|
||||
field_clause = "pu.field_name IS NOT NULL"
|
||||
field_args: list[str] = []
|
||||
else:
|
||||
field_clause, field_args = make_in_list_sql_clause(
|
||||
|
||||
Reference in New Issue
Block a user