0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 07:21:37 +01:00

Convert param style

This commit is contained in:
Erik Johnston 2016-01-29 14:41:16 +00:00
parent 18579534ea
commit f67d60496a

View file

@ -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()