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

Reply via email to