From e440e73a889c8929730632d62ebc84e32475b549 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 13 Jul 2011 11:03:13 +0200 Subject: Add PostgreSQL --- mapping/traits-pgsql.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mapping/traits-pgsql.cxx (limited to 'mapping/traits-pgsql.cxx') 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 +// 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::pg_epoch_tt ( + mktime (&pg_epoch_tm)); + } +} -- cgit v1.1