[odb-users] Null values for unset properties
Boris Kolpackov
boris at codesynthesis.com
Tue Jul 26 09:15:29 EDT 2011
Hi Rafael,
Rafael Pena <pena.rd at gmail.com> writes:
> NOT NULL is the default type in ddl generated by ODB, can I change
> the optional fields to #pragma db type("DOUBLE")?
Yes, you can do that. Or, you can upgrade to ODB 1.5.0 and use the
new null pragma:
#pragma db null
double optionalValue;
> Is there a way to leave unset fields as null?
For answer to this question see this post from a few days ago:
http://www.codesynthesis.com/pipermail/odb-users/2011-July/000193.html
Boris
More information about the odb-users
mailing list