aboutsummaryrefslogtreecommitdiff
path: root/oracle/types/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'oracle/types/test.hxx')
-rw-r--r--oracle/types/test.hxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/oracle/types/test.hxx b/oracle/types/test.hxx
index 907d310..be49b82 100644
--- a/oracle/types/test.hxx
+++ b/oracle/types/test.hxx
@@ -252,4 +252,27 @@ struct big_int
}
};
+#pragma db object
+struct blob
+{
+ blob (): id_ (0) {}
+
+ blob (unsigned int id, std::size_t n)
+ : id_ (id), value_ ('b', n)
+ {
+ }
+
+ #pragma db id
+ unsigned int id_;
+
+ #pragma db type ("BLOB")
+ std::vector<char> value_;
+
+ bool
+ operator== (const blob& y) const
+ {
+ return id_ == y.id_ && value_ == y.value_;
+ }
+};
+
#endif // TEST_HXX