mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 05:04:19 -05:00
fix sql fails
This commit is contained in:
parent
2908f955d1
commit
6b48b3e277
@ -608,7 +608,7 @@ class SQLBaseStore(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if keyvalues:
|
if keyvalues:
|
||||||
sql += "WHERE %s" % " AND ".join("%s = ?" % k for k in keyvalues.iterkeys())
|
sql += " WHERE %s" % " AND ".join("%s = ?" % k for k in keyvalues.iterkeys())
|
||||||
txn.execute(sql, keyvalues.values())
|
txn.execute(sql, keyvalues.values())
|
||||||
else:
|
else:
|
||||||
txn.execute(sql)
|
txn.execute(sql)
|
||||||
|
Loading…
Reference in New Issue
Block a user