Save validations in a form they can actually be used.

This commit is contained in:
JoelKatz
2013-01-31 15:40:41 -08:00
parent 6d1a3955b4
commit 7d8df3dddf
3 changed files with 16 additions and 10 deletions

View File

@@ -547,7 +547,7 @@ uint256 Ledger::getHashByIndex(uint32 ledgerIndex)
{
uint256 ret;
std::string sql="SELECT LedgerHash FROM Ledgers WHERE LedgerSeq='";
std::string sql="SELECT LedgerHash FROM Ledgers INDEXED BY SeqLedger WHERE LedgerSeq='";
sql.append(boost::lexical_cast<std::string>(ledgerIndex));
sql.append("';");