From d33b95fff7f790d669c5798fdab913d38fc4ae79 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 5 Jan 2011 13:50:34 +0200 Subject: Factor out id initialization and container loading into separate functions --- odb/mysql/inline.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'odb/mysql/inline.cxx') 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 -- cgit v1.1