From f5a9d565dad28df86490b392cd5b4d763ab2a248 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 21 Jul 2011 23:17:02 +0200 Subject: Add Boost profile tests for PostgreSQL --- boost/pgsql/date-time/test.hxx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 boost/pgsql/date-time/test.hxx (limited to 'boost/pgsql/date-time/test.hxx') diff --git a/boost/pgsql/date-time/test.hxx b/boost/pgsql/date-time/test.hxx new file mode 100644 index 0000000..9f6746e --- /dev/null +++ b/boost/pgsql/date-time/test.hxx @@ -0,0 +1,41 @@ +// file : boost/pgsql/date-time/test.hxx +// author : Constantin Michael +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include + +#include +#include + +#include + +#pragma db object +struct object +{ + object () + { + } + + bool + operator== (const object& x) const + { + return + id == x.id && + dates == x.dates && + times == x.times && + durations == x.durations; + } + + #pragma db id auto + unsigned long id; + + std::vector dates; + std::vector times; + std::vector durations; +}; + +#endif // TEST_HXX -- cgit v1.1