diff options
Diffstat (limited to 'common/query/driver.cxx')
-rw-r--r-- | common/query/driver.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/query/driver.cxx b/common/query/driver.cxx index d9d0f12..45392b8 100644 --- a/common/query/driver.cxx +++ b/common/query/driver.cxx @@ -422,7 +422,12 @@ main (int argc, char* argv[]) ++i; assert (i != r.end ()); auto_ptr<person> joe (db->load<person> (3)); - assert (i->last_name_ == "Doe"); + assert (i->last_name_ == "Doe"); // Actual load. + + person p; + joe.reset (db->load<person> (3)); // Overwrite object image again. + i.load (p); + assert (p.last_name_ == "Doe"); t.commit (); } |