Add more database unit tests

This commit is contained in:
Nick Hall
2016-10-25 23:01:34 +01:00
parent 73d87e59e3
commit ddce9b0138
2 changed files with 114 additions and 1 deletions

View File

@ -1751,7 +1751,7 @@ class DBAPI(DbGeneric):
if isinstance(key, bytes):
key = str(key, "utf-8")
self.dbapi.execute(
"SELECT blob_data FROM repository WHERE handle = ?", [key])
"SELECT blob_data FROM repository WHERE gramps_id = ?", [key])
row = self.dbapi.fetchone()
if row:
return pickle.loads(row[0])