aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:47:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:47:07 +0200
commitbf21eac4ab82b7058c3c4148bae8b1f77924730e (patch)
tree65144a85ad85d236aedcf1cef1f3e10c2d5ed715 /odb/mysql
parent0af7ebb3ec09bb97f63337d365f1d3404ccaebdc (diff)
Rename store() to update()
Diffstat (limited to 'odb/mysql')
-rw-r--r--odb/mysql/header.cxx6
-rw-r--r--odb/mysql/source.cxx10
2 files changed, 8 insertions, 8 deletions
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 ()