Fix SQL_FOREACH.

This commit is contained in:
Arthur Britto
2012-06-14 18:33:31 -07:00
parent 83640b987a
commit 70970d8042
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
#define SQL_FOREACH(_db, _strQuery) \
if ((_db)->executeSQL(_strQuery)) \
for (bool _bMore = (db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
void splitIpPort(const std::string& strIpPort, std::string& strIp, int& iPort)
{

View File

@@ -537,7 +537,7 @@ void NetworkOPs::setMode(OperatingMode om)
#define SQL_FOREACH(_db, _strQuery) \
if ((_db)->executeSQL(_strQuery)) \
for (bool _bMore = (db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
std::vector< std::pair<uint32, uint256> >
NetworkOPs::getAffectedAccounts(const NewcoinAddress& account, uint32 minLedger, uint32 maxLedger)

View File

@@ -31,7 +31,7 @@
#define SQL_FOREACH(_db, _strQuery) \
if ((_db)->executeSQL(_strQuery)) \
for (bool _bMore = (db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
for (bool _bMore = (_db)->startIterRows(); _bMore; _bMore = (_db)->getNextRow())
UniqueNodeList::UniqueNodeList(boost::asio::io_service& io_service) :
mdtScoreTimer(io_service),