[EXTERNAL] Re: [odb-users] Support for boost::posix_time::ptime

Stroud, Sean T ststrou at sandia.gov
Tue Nov 6 14:29:17 EST 2012

Oh, right - thanks!


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Tuesday, November 06, 2012 11:51 AM
To: Stroud, Sean T
Cc: odb-users at codesynthesis.com
Subject: [EXTERNAL] Re: [odb-users] Support for boost::posix_time::ptime

Hi Sean,

Stroud, Sean T <ststrou at sandia.gov> writes:

> According to section “19.5.3 PostgreSQL Database Type Mapping” in the 
> ODB manual, the default mapping for posix_time::ptime is TIMESTAMP.
> [...]
> % odb –d pgsql –q test_class.h

You need to enable the Boost date-time sub-profile:

odb –d pgsql -p boost/date-time –q test_class.h

See Section "19.5 Date Time Library" for details.


More information about the odb-users mailing list