From bf21eac4ab82b7058c3c4148bae8b1f77924730e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2010 14:47:07 +0200 Subject: Rename store() to update() --- odb/mysql/header.cxx | 6 +++--- odb/mysql/source.cxx | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'odb/mysql') diff --git a/odb/mysql/header.cxx b/odb/mysql/header.cxx index 5c82bb2..6cd3569 100644 --- a/odb/mysql/header.cxx +++ b/odb/mysql/header.cxx @@ -284,7 +284,7 @@ namespace mysql // os << "static const char* const persist_statement;" << "static const char* const find_statement;" - << "static const char* const store_statement;" + << "static const char* const update_statement;" << "static const char* const erase_statement;"; if (options.generate_query ()) @@ -334,10 +334,10 @@ namespace mysql << "persist (database&, object_type&);" << endl; - // store () + // update () // os << "static void" << endl - << "store (database&, object_type&);" + << "update (database&, object_type&);" << endl; // erase () diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index 22dac91..9502a1b 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -715,9 +715,9 @@ namespace mysql column_name (id) << "` = ?\";" << endl; - // store_statement + // update_statement // - os << "const char* const " << traits << "::store_statement =" << endl + os << "const char* const " << traits << "::update_statement =" << endl << "\"UPDATE `" << table_name (c) << "` SET \"" << endl; { @@ -853,10 +853,10 @@ namespace mysql os << "}"; - // store () + // update () // os << "void " << traits << "::" << endl - << "store (database&, object_type& obj)" + << "update (database&, object_type& obj)" << "{" << "using namespace mysql;" << endl @@ -876,7 +876,7 @@ namespace mysql << "if (init (sts.image (), obj) || imb.version == 0)" << endl << "bind (imb, sts.image ());" << endl - << "sts.store_statement ().execute ();" + << "sts.update_statement ().execute ();" << "}"; // erase () -- cgit v1.1