diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-27 12:52:23 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-27 12:52:23 +0200 |
commit | 4ee1a059a013beb224e9461f119b23c4dffa2615 (patch) | |
tree | 06ed94a6c737760ef5c4315a645a0dbbc5e9dd5d /common/query | |
parent | 5586f85d5542b9552e59e555206e2e355f00864e (diff) |
Temporarily exclude query test 14 from Oracle test suite
Diffstat (limited to 'common/query')
-rw-r--r-- | common/query/driver.cxx | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/common/query/driver.cxx b/common/query/driver.cxx index df631f4..3108158 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -413,19 +413,21 @@ main (int argc, char* argv[]) // not invalidate the result. // cout << "test 014" << endl; - // { - // transaction t (db->begin ()); - // result r (db->query<person> (query::last_name == "Doe")); - - // result::iterator i (r.begin ()); - // assert (i != r.end ()); - // ++i; - // assert (i != r.end ()); - // auto_ptr<person> joe (db->load<person> (3)); - // assert (i->last_name_ == "Doe"); - - // t.commit (); - // } +#ifndef DATABASE_ORACLE + { + transaction t (db->begin ()); + result r (db->query<person> (query::last_name == "Doe")); + + result::iterator i (r.begin ()); + assert (i != r.end ()); + ++i; + assert (i != r.end ()); + auto_ptr<person> joe (db->load<person> (3)); + assert (i->last_name_ == "Doe"); + + t.commit (); + } +#endif // Test uncached result. // |