diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 14:14:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 14:14:45 +0200 |
commit | a40caf1f2cb9da06b12885c9753c0a9bc54ce9c5 (patch) | |
tree | 1097a93995f615445ac107c03545c076fca78e06 /common/template | |
parent | afc6505d75dbc391452f41081af457045d5e7526 (diff) |
Test mapping of basic C++ types to DB types
Diffstat (limited to 'common/template')
-rw-r--r-- | common/template/test.hxx | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/common/template/test.hxx b/common/template/test.hxx index 48acd44..3891a75 100644 --- a/common/template/test.hxx +++ b/common/template/test.hxx @@ -10,14 +10,14 @@ #include <odb/core.hxx> #pragma odb object -struct object1 +struct object { - object1 (unsigned long id) + object (unsigned long id) : id_ (id) { } - object1 () + object () { } @@ -25,20 +25,4 @@ struct object1 unsigned long id_; }; -#pragma odb object -struct object2 -{ - object2 (const std::string& id) - : id_ (id) - { - } - - object2 () - { - } - - #pragma odb id - std::string id_; -}; - #endif // TEST_HXX |