aboutsummaryrefslogtreecommitdiff
path: root/common/container/test.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-20 11:04:13 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-21 13:29:10 +0200
commit33615c685523e5f282bc585efa0ff31df7dd3742 (patch)
tree6faac511bb1280aae5c142357a107c6ffa4fc6d9 /common/container/test.hxx
parent5fae6bf3eaf7301b0ecf89783ca6cd4e63acec67 (diff)
Add common tests for Oracle
Due to the 30 character limit imposed by Oracle on identifiers, some of the common tests code and/or makefiles had to be modified.
Diffstat (limited to 'common/container/test.hxx')
-rw-r--r--common/container/test.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/container/test.hxx b/common/container/test.hxx
index 2e267f6..ec392ec 100644
--- a/common/container/test.hxx
+++ b/common/container/test.hxx
@@ -54,6 +54,7 @@ struct cont_comp1
{
// This composite value does not have any columns.
//
+ #pragma db id_column("obj_id")
num_vector sv; // Have the name "conflic" with the one in the object.
};
@@ -63,11 +64,14 @@ struct cont_comp2
cont_comp2 (): num (777), str ("ggg") {}
int num;
+
+ #pragma db id_column("obj_id")
str_list sl;
+
std::string str;
};
-#pragma db object
+#pragma db object table("obj")
struct object
{
object (): nv (comp1_.sv), sl (comp2_.sl) {}