[odb-users] Re: Set integer field to NULL

Alexis Mestag alexis.mestag at epitech.eu
Wed Apr 8 11:36:24 EDT 2015


Hi Nicholas,

> I need to set an integer field in my db to value type NULL, not to 0.
> Is there any way to do this?

I believe you can use the odb::nullable class template to achieve this, as
explained here: http://www.codesynthesis.com/products/odb/doc/manual.xhtml#7.3

Alexis MESTAG



More information about the odb-users mailing list