diff --git a/src/cpp/ripple/NetworkOPs.cpp b/src/cpp/ripple/NetworkOPs.cpp index 0a9b408b9..4f2457c64 100644 --- a/src/cpp/ripple/NetworkOPs.cpp +++ b/src/cpp/ripple/NetworkOPs.cpp @@ -1073,7 +1073,7 @@ std::vector< std::pair > boost::str(boost::format("SELECT AccountTransactions.LedgerSeq,Status,RawTxn,TxnMeta FROM " "AccountTransactions INNER JOIN Transactions ON Transactions.TransID = AccountTransactions.TransID " "WHERE Account = '%s' AND AccountTransactions.LedgerSeq <= '%u' AND AccountTransactions.LedgerSeq >= '%u' " - "ORDER BY AccountTransactions.LedgerSeq,AccountTransactions.TransID DESC%s;") + "ORDER BY AccountTransactions.LedgerSeq DESC, AccountTransactions.TransID DESC%s;") % account.humanAccountID() % maxLedger % minLedger % (bAdmin ? "" : " LIMIT 200")); { @@ -1110,7 +1110,7 @@ std::vector NetworkOPs::getAccountTxsB( std::string sql = str(boost::format("SELECT AccountTransactions.LedgerSeq,Status,RawTxn,TxnMeta FROM " "AccountTransactions INNER JOIN Transactions ON Transactions.TransID = AccountTransactions.TransID " "WHERE Account = '%s' AND AccountTransactions.LedgerSeq <= '%u' AND AccountTransactions.LedgerSeq >= '%u' " - "ORDER BY AccountTransactions.LedgerSeq,AccountTransactions.TransID DESC%s;") + "ORDER BY AccountTransactions.LedgerSeq DESC, AccountTransactions.TransID DESC%s;") % account.humanAccountID() % maxLedger % minLedger % (bAdmin ? "" : " LIMIT 500")); {