diff options
Diffstat (limited to 'hello')
-rw-r--r-- | hello/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hello/driver.cxx b/hello/driver.cxx index b14ced8..348efdb 100644 --- a/hello/driver.cxx +++ b/hello/driver.cxx @@ -72,7 +72,7 @@ main (int argc, char* argv[]) auto_ptr<person> joe (db->load<person> (joe_id)); joe->age (joe->age () + 1); - db->store (*joe); + db->update (*joe); t.commit (); } @@ -92,7 +92,7 @@ main (int argc, char* argv[]) { auto_ptr<person> joe (*i); joe->age (joe->age () + 1); - db->store (*joe); + db->update (*joe); } t.commit (); |