Missing startIterRows.

This commit is contained in:
JoelKatz
2011-12-30 18:48:29 -08:00
parent 983f4560f3
commit 5a38a71382
4 changed files with 7 additions and 7 deletions

View File

@@ -89,8 +89,8 @@ HashedObject::pointer HashedObject::retrieve(const uint256& hash)
ScopedLock sl(theApp->getHashNodeDB()->getDBLock());
Database* db=theApp->getHashNodeDB()->getDB();
if(!db->executeSQL(sql.c_str())) return HashedObject::pointer();
if(!db->getNextRow()) return HashedObject::pointer();
if(!db->executeSQL(sql.c_str()) || !db->startIterRows() || !db->getNextRow())
return HashedObject::pointer();
std::string type;
db->getStr("ObjType", type);