On Sat, Jan 8, 2011 at 10:00 PM, NeDark <[email protected]> wrote:

> Hello.
>
> Sorry for the late reply, I had been very busy this week.
>
> I were using the rowset object since I had to process several rows.
>
> I have modified your example so you can see the issue.
>
>     sql << "CREATE TABLE IF NOT EXISTS t1 (b int unsigned, x bigint
> unsigned)";
>     sql << "DELETE FROM t1";
>     unsigned long uu = ~0;
>     cout << " uu " <<  uu << endl;
>     sql << "INSERT INTO t1 (b,x) VALUES (0,:uu)", use(uu);
>     soci::rowset<soci::row> rs = (sql.prepare << "SELECT x FROM t1");
>     for (rowset::const_iterator it = rs.begin(); it != rs.end(); ++it)
>     {
>         soci::row const& row = *it;
>         uu = row.get<unsigned int>("x");
>     }
>     cout << " uu " <<  uu << endl;
>
>
Hi,
sorry for the late reply. I had a very brief look into the code and it seems
unsigned types are not supported for dynamic rowsets by the mysql backend.
It seems straighforward to add it though. I have some time in a few weeks,
maybe I can look into it.
Patches are of course welcome too :)

Best Regards,
Julian Taylor
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to