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

@@ -343,7 +343,7 @@ Ledger::pointer Ledger::getSQL(const std::string& sql)
{
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
Database *db=theApp->getLedgerDB()->getDB();
if(!db->executeSQL(sql.c_str()) || !db->getNextRow())
if(!db->executeSQL(sql.c_str()) || !db->startIterRows() || !db->getNextRow())
return Ledger::pointer();
db->getStr("LedgerHash", hash);