From ff1742a068327e180531af6d1429a9dee2e1d07f Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 27 Mar 2013 12:38:21 -0700 Subject: [PATCH] Fix order of account transactions returns. --- src/cpp/ripple/NetworkOPs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); {