aboutsummaryrefslogtreecommitdiff
path: root/common/schema/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-07-20 14:14:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-07-20 14:14:45 +0200
commita40caf1f2cb9da06b12885c9753c0a9bc54ce9c5 (patch)
tree1097a93995f615445ac107c03545c076fca78e06 /common/schema/test.hxx
parentafc6505d75dbc391452f41081af457045d5e7526 (diff)
Test mapping of basic C++ types to DB types
Diffstat (limited to 'common/schema/test.hxx')
-rw-r--r--common/schema/test.hxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/common/schema/test.hxx b/common/schema/test.hxx
index 471d27b..c9ddd14 100644
--- a/common/schema/test.hxx
+++ b/common/schema/test.hxx
@@ -51,7 +51,25 @@ struct type
#pragma odb id
int id;
- #pragma odb type ("INTEGER")
+ // Test default C++ to DB type mapping.
+ //
+ bool b;
+ char c;
+ signed char sc;
+ unsigned char uc;
+ short s;
+ unsigned short us;
+ int i;
+ unsigned int ui;
+ long l;
+ unsigned long ul;
+ long long ll;
+ unsigned long long ull;
+ float f;
+ double d;
+ std::string str;
+
+ #pragma odb type ("INTEGER UNSIGNED")
bool m1;
};