diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-13 11:03:13 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-13 11:03:13 +0200 |
commit | e440e73a889c8929730632d62ebc84e32475b549 (patch) | |
tree | cefbcd5cac5e14e54c5a482af58e19d5973ea2e0 /mapping/traits-pgsql.cxx | |
parent | 292f71768c16e14369c7aea4ef0590b0a741c3bc (diff) |
Add PostgreSQL
Diffstat (limited to 'mapping/traits-pgsql.cxx')
-rw-r--r-- | mapping/traits-pgsql.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mapping/traits-pgsql.cxx b/mapping/traits-pgsql.cxx new file mode 100644 index 0000000..026e15f --- /dev/null +++ b/mapping/traits-pgsql.cxx @@ -0,0 +1,19 @@ +// file : mapping/traits-pgsql.cxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : not copyrighted - public domain + +#include "traits-pgsql.hxx" + +namespace odb +{ + namespace pgsql + { + namespace + { + tm pg_epoch_tm = {0, 0, 0, 1, 1, 100, 0, 0, 0, 0, 0}; + } + + const time_t value_traits<date, id_date>::pg_epoch_tt ( + mktime (&pg_epoch_tm)); + } +} |