[odb-users] how to represent mysql timestamps?
Douglas Tomm
doug at plaxo.com
Fri Aug 3 12:48:14 EDT 2012
yep, that's all i needed to do. thanks again!
d
On 8/3/12 3:59 AM, Boris Kolpackov wrote:
> Hi Doug
>
> Douglas Tomm <dctomm at gmail.com> writes:
>
>> When i put this in my class:
>>
>> #pragma db type("timestamp") not_null column("created")
>> boost::posix_time::ptime m_created;
>>
>> the following compiler messages appeared.
> My guess is you didn't add the boost/date-time profile to your ODB
> compiler command line (you will also need to link to the libodb-boost
> library):
>
> odb ... -p boost/date-time ...
>
> Remember that the database mapping for Boost types is provides by
> the Boost profile. See Chapter 19, "Boost Profile" in the ODB
> Manual for details.
>
> Boris
>
More information about the odb-users
mailing list