aboutsummaryrefslogtreecommitdiff
path: root/common/query/test.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:52:41 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-27 12:52:41 +0200
commit5a6e85d92fa0f46a329ea8603e150c7e8da4097f (patch)
tree2220cbe7f7e44c4c9bc926381614b8cf7eb76775 /common/query/test.hxx
parent4ee1a059a013beb224e9461f119b23c4dffa2615 (diff)
Rename typedef type for clarity
Diffstat (limited to 'common/query/test.hxx')
-rw-r--r--common/query/test.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/query/test.hxx b/common/query/test.hxx
index eab7048..d2d28d2 100644
--- a/common/query/test.hxx
+++ b/common/query/test.hxx
@@ -16,7 +16,8 @@
#include <common/config.hxx> // DATABASE_XXX
-typedef odb::nullable<std::vector<char> > nullable_vector;
+typedef std::vector<char> buffer;
+typedef odb::nullable<buffer> nullable_buffer;
#pragma db object
struct person
@@ -26,7 +27,7 @@ struct person
const std::string& ln,
unsigned short age,
bool married,
- const nullable_vector& public_key = nullable_vector ())
+ const nullable_buffer& public_key = nullable_buffer ())
: id_ (id),
first_name_ (fn),
last_name_ (ln),
@@ -60,7 +61,7 @@ struct person
#else
#pragma db column ("key") type ("BLOB") null
#endif
- nullable_vector public_key_;
+ nullable_buffer public_key_;
};
inline std::ostream&