diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-10 13:07:20 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-10 16:39:13 +0200 |
commit | e00bc68eb5eb8070c8799275f73345a27f7abc60 (patch) | |
tree | 74d3abb9620edff3a6ab289a3570b590a420cf7d /oracle/types/test.hxx | |
parent | 8c4f0afcc7f2db3c0696aa1edac1270c4bffbec7 (diff) |
Test large Oracle LOBs
Diffstat (limited to 'oracle/types/test.hxx')
-rw-r--r-- | oracle/types/test.hxx | 23 |
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 |