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/driver.cxx | |
parent | 8c4f0afcc7f2db3c0696aa1edac1270c4bffbec7 (diff) |
Test large Oracle LOBs
Diffstat (limited to 'oracle/types/driver.cxx')
-rw-r--r-- | oracle/types/driver.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/oracle/types/driver.cxx b/oracle/types/driver.cxx index b786cec..aac636a 100644 --- a/oracle/types/driver.cxx +++ b/oracle/types/driver.cxx @@ -169,6 +169,28 @@ main (int argc, char* argv[]) assert (bui3 == *buil3); } + // Test large BLOBs. + // + blob b (1, 50000); + + // Persist. + // + { + transaction t (db->begin ()); + db->persist (b); + t.commit (); + } + + // Load. + // + { + transaction t (db->begin ()); + auto_ptr<blob> bl (db->load<blob> (1)); + t.commit (); + + assert (b == *bl); + } + // Test descriptor management in TIMESTAMP and INTERVAL images. // { |