[odb-users] Storing NaN in the datadbase

Alexander A. Prokhorov prokher at gmail.com
Wed Jul 18 04:59:31 EDT 2012


Hello,

I'm trying to store the following structure into sqlite backend:

#pragma db object abstract
class DbObject {
   friend class odb::access;
protected:
   #pragma db id auto
   Id _id;
};

class Value : public DbObject {
   friend class odb::access;
   double _value;
};

Everything is fine until Value::_value becomes NaN, when calling persist for such objects I got the following error:
'object already persistent'
is it possible to store NaN's in database with odb?



More information about the odb-users mailing list