Hi, Any chance to receive it as pull request? https://github.com/SOCI/soci/
Thanks, Regards, On 16 October 2015 at 11:33, <gurub...@users.sf.net> wrote: > REPLY at http://sourceforge.net/u/gurubg15/profile/send_message > > ________________________________ > > Hello Mr. Loskot, > > Thanks for the soci library, it just made my life much easier than it used > to be. > I am using soci library for DB2 database. > While using it I faced a problem with bulk insertion of the data to DB2 > tables. Well, insertion was OK , but when I read the inserted data back, > string values come back with extra characters or junk values. > I started looking at the code and modified it a bit (function > prepare_for_bind of vector-use-type.cpp : line 142 ). > > I saw for x_stdstring type, Len +1 of the string param is sent to > SQLBindParameter (.....StrLen_or_IndPtr) function . Which was causing the > problem. > > indVec[i] = static_cast<long>(sz) > > So I have modified the same to > > indVec[i] = SQL_NTS; > > //SQL_NTS. The parameter value is a null-terminated string. > > Which works like a gem, I have faced no problems so far while using this > modified version of the . Just wanted to inform you as you can verify it and > if its valid, include it in the future versions of soci. > > -Cheers, > Guru > > ________________________________ > > This message was sent to you via the SourceForge web mail form. > Replying to this email will not work, please send a message to guru at > http://sourceforge.net/u/gurubg15/profile/send_message -- Mateusz Loskot, http://mateusz.loskot.net ------------------------------------------------------------------------------ _______________________________________________ soci-devel mailing list soci-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-devel