Hello,

Shridhar Daithankar wrote:

> PFA a test program to test boost::optional with prepared statement. If the 
> typedef uses boost::optional, 200 records are inserted which is wrong. If the 
> typedef uses std::string, 110 records are inserted which is correct.

Thank you very much for this report.
Indeed, this was a bug related to the improper order of preparation 
activities in the statement execution, which did not take into account 
the fact that used vectors might be resized between execitions.

I have just fixed it:

http://soci.git.sourceforge.net/git/gitweb.cgi?p=soci/soci;a=commitdiff;h=a638c3155cb76bba80dbafa0522cd0c08a402308

Regards,

-- 
Maciej Sobczak * www.msobczak.com * www.inspirel.com

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to