I have:
string strQuery = "select count(distinct tx_hash) as b_tx_count, ";
        strQuery += "IFNULL(sum(amount),0) as b_turnover_btc,
IFNULL(sum(usd_value),0.0) as b_turnover_usd ";
        strQuery += "from " + dbParams.transactionsTabName;
......
rowset<row> rsA = (sql.prepare << strQuery.c_str());
cout << "0 ";
string sss = rsA.begin()->get<string>(1);
cout << "1 ";


is bad_cast
although is
 - element 1 - are 3 columns
 - IFNULL - not null
- cast to string - always is possible cast to string?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
soci-users mailing list
soci-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to