mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-14 22:11:47 +01:00
Convert param style
This commit is contained in:
parent
18579534ea
commit
f67d60496a
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
|
||||
def __init__(self, db_conn, hs):
|
||||
self.hs = hs
|
||||
self.database_engine = hs.database_engine
|
||||
|
||||
cur = db_conn.cursor()
|
||||
try:
|
||||
|
@ -157,6 +158,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
"stream": stream_column,
|
||||
}
|
||||
|
||||
sql = self.database_engine.convert_param_style(sql)
|
||||
|
||||
txn = db_conn.cursor()
|
||||
txn.execute(sql, (int(max_value),))
|
||||
rows = txn.fetchall()
|
||||
|
|
Loading…
Reference in a new issue