mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 13:34:57 -04:00
parent
bc5589a1bb
commit
329ef5c715
6 changed files with 93 additions and 27 deletions
|
@ -133,6 +133,11 @@ class PostgresEngine(BaseDatabaseEngine):
|
|||
"""Do we support using `a = ANY(?)` and passing a list"""
|
||||
return True
|
||||
|
||||
@property
|
||||
def supports_returning(self) -> bool:
|
||||
"""Do we support the `RETURNING` clause in insert/update/delete?"""
|
||||
return True
|
||||
|
||||
def is_deadlock(self, error):
|
||||
if isinstance(error, self.module.DatabaseError):
|
||||
# https://www.postgresql.org/docs/current/static/errcodes-appendix.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue