From 27f66487bc50ee5086c22f5831d72e4669fba084 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2010 14:47:07 +0200 Subject: Rename store() to update() --- common/lifecycle/driver.cxx | 2 +- common/threads/driver.cxx | 2 +- libcommon/common/makefile | 2 +- mysql/truncation/driver.cxx | 6 +++--- tracer/object/driver.cxx | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/common/lifecycle/driver.cxx b/common/lifecycle/driver.cxx index a7be6d4..5518a40 100644 --- a/common/lifecycle/driver.cxx +++ b/common/lifecycle/driver.cxx @@ -76,7 +76,7 @@ main (int argc, char* argv[]) transaction t (db->begin_transaction ()); auto_ptr o (db->load (1)); o->str_ = "value 2"; - db->store (*o); + db->update (*o); t.commit (); } diff --git a/common/threads/driver.cxx b/common/threads/driver.cxx index 9703e29..14ca172 100644 --- a/common/threads/driver.cxx +++ b/common/threads/driver.cxx @@ -62,7 +62,7 @@ struct task auto_ptr o (db_.load (id)); assert (o->str_ == "frist object"); o->str_ = "another value"; - db_.store (*o); + db_.update (*o); t.commit (); } diff --git a/libcommon/common/makefile b/libcommon/common/makefile index fccce1a..c9ecdaf 100644 --- a/libcommon/common/makefile +++ b/libcommon/common/makefile @@ -80,7 +80,7 @@ $(dist): $(clean): $(common.l).o.clean \ $(common.l.cpp-options).clean \ $(addsuffix .cxx.clean,$(cxx_obj)) \ - $(addsuffix .cxx.clean,$(cxx_od)) \ + $(addsuffix .cxx.clean,$(cxx_od)) $(call message,rm $$1,rm -f $$1,$(out_base)/config.h) # Generated .gitignore. diff --git a/mysql/truncation/driver.cxx b/mysql/truncation/driver.cxx index eca11cd..d4e50c6 100644 --- a/mysql/truncation/driver.cxx +++ b/mysql/truncation/driver.cxx @@ -84,7 +84,7 @@ main (int argc, char* argv[]) o.str_ = longer_str; transaction t (db->begin_transaction ()); - db->store (o); + db->update (o); t.commit (); } @@ -138,14 +138,14 @@ main (int argc, char* argv[]) // This forces buffer growth in the middle of result iteration. // - db->store (o); + db->update (o); ++i; assert (i->str_ == "test string"); o.id_ = i->id_; o.str_ = longer_str; - db->store (o); + db->update (o); ++i; assert (i->str_ == "test string"); diff --git a/tracer/object/driver.cxx b/tracer/object/driver.cxx index 0d84d0f..c8258b8 100644 --- a/tracer/object/driver.cxx +++ b/tracer/object/driver.cxx @@ -169,7 +169,7 @@ main () cout << "s 2" << endl; } - // store + // update // cout << "\ntest 010" << endl; { @@ -177,13 +177,13 @@ main () cout << "s 1" << endl; auto_ptr o1 (db.load (1)); cout << "s 2" << endl; - db.store (*o1); + db.update (*o1); cout << "s 3" << endl; t.commit (); cout << "s 4" << endl; } - // store (not exist) + // update (not exist) // cout << "\ntest 011" << endl; { @@ -192,7 +192,7 @@ main () cout << "s 1" << endl; try { - db.store (o1); + db.update (o1); } catch (const object_not_persistent&) { -- cgit v1.1