Hello SJ,

There was a bug in version 3.0.0.  Can you try using the latest
version from git?  The problem should go away.  Sorry for the trouble!

Thanks,

Aleksander

On Thu, Feb 11, 2010 at 1:39 AM, SJ Henriksen <[email protected]> wrote:
> I'm finding when I'm using soci (3.0.0) to query text fields, sometimes the
> returned string is longer than the data in the database row, starting with
> some binary junk at the end, followed sometimes by the start of the next
> record.  Does mysql backend not support the text field type, or is something
> else going wrong here?
>
> This is the code I'm using,
>
>   soci::session sql(soci::mysql, dbaccess);
>   string summary;
>   soci::statement stt =
>     (sql.prepare << "SELECT summary FROM storytext", soci::into(summary));
>   stt.execute();
>   while (stt.fetch()) {
>     std::cout << summary << "\n-------------------------------\n";
>   }
>
>
> Thanks
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Soci-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/soci-users
>
>

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to