Michał Nowotka wrote:
> rowset<unsigned long> accounts = sql.prepare << string("select
> distinct owner_ID_FK as konto from Simple_Node where ID=5");
> for (soci::rowset<unsigned long>::const_iterator nodeIterator =
> nodeIDs.begin(); nodeIterator != nodeIDs.end(); ++nodeIterator)
>     {
>       //now when ++operator is called I can always get exception
>         thrown if next element is null...

One more addition, assuming you have indicator(s) defined
(see the manual) you should not expect any exception thrown here.

The error says "Null value fetched and no indicator defined"
what means you can fetch null values safely as long as
you have indicators defined/used.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to