Hello,
I can't give a test case that demonstrates the problem but when I
execute following code with my mySQL database:

typedef vector<string> Masks;
typedef unsigned long int ULongInt;
typedef boost::optional< ULongInt > OptULong;
typedef soci::rowset<OptULong> LongRowset;
typedef boost::optional<std::string> OptString;
typedef soci::rowset<OptString> StringRowset;

LongRowset nodeIDs = sql.prepare << "select distinct " + node_ID_FK +
" as wezel from " + Node;

for (LongRowset::const_iterator nodeIterator = nodeIDs.begin();
nodeIterator != nodeIDs.end(); ++nodeIterator)
{
    // ...
    Masks masksContainer;

    for (StringRowset::iterator maskIterator = masks.begin();
maskIterator != masks.end(); ++maskIterator)
           if(maskIterator->is_initialized())
               masksContainer.push_back(maskIterator->get() +
string("|") + lexical_cast< string >(6)); // I append "|6" at the end
just to mark when the strings end
}

then masksContaner contains string with some strange artifacts at the
end, for example:

poczta.akcja.pl  ��      ��     ��     ��     ��     ��     
poczta.czateria.pl
        (��     P��     0��     0��     7��     8��     I��     |6

I checked that the record from which this string was retrieved
contains only "poczta.akcja.pl" so i guess this strange tail is some
bug in soci.

What is interesting, next retrieved string is:

poczta.czateria.pl      (��     P��     0��     0��     7��     8��     I��     
poczta.serwus.pl
��      W��     ���     `��     x��     h��     |6

so previous string contains part of the next string...

Can you help me?




-- 
Regards

Michał Nowotka

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to