diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-01-05 13:50:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-01-05 13:50:34 +0200 |
commit | d33b95fff7f790d669c5798fdab913d38fc4ae79 (patch) | |
tree | e74894a0de77c08af673e1356915b29a2b7b1a92 /odb/mysql/inline.cxx | |
parent | 320ca6d1a967621ac319922d1a4dfd17f8a03d60 (diff) |
Factor out id initialization and container loading into separate functions
Diffstat (limited to 'odb/mysql/inline.cxx')
-rw-r--r-- | odb/mysql/inline.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/mysql/inline.cxx b/odb/mysql/inline.cxx index 1178557..1ab16ca 100644 --- a/odb/mysql/inline.cxx +++ b/odb/mysql/inline.cxx @@ -74,6 +74,17 @@ namespace mysql << "{" << "return obj." << id.name () << ";" << endl << "}"; + + // load_() + // + if (!has_a (c, test_container)) + { + os << "inline" << endl + << "void " << traits << "::" << endl + << "load_ (mysql::object_statements< object_type >&, object_type&)" + << "{" + << "}"; + } } virtual void |