fix sql fails

This commit is contained in:
Richard van der Hoff 2017-11-22 18:06:24 +00:00
parent 2908f955d1
commit 6b48b3e277

View File

@ -608,7 +608,7 @@ class SQLBaseStore(object):
}
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())
else:
txn.execute(sql)