diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 13:58:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 13:58:27 +0200 |
commit | 5dc5097486637e825c75560317bd2109c5e4bd58 (patch) | |
tree | 73e017ca115c1fa7430f34994cb984fd9e9f5774 /odb | |
parent | 3356c10f4e3d7af8e835f3e4e00ba29e0193c5e0 (diff) |
Return result instead of a pointer to impl
Diffstat (limited to 'odb')
-rw-r--r-- | odb/mysql/header.cxx | 2 | ||||
-rw-r--r-- | odb/mysql/source.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/odb/mysql/header.cxx b/odb/mysql/header.cxx index c3222bc..8d32284 100644 --- a/odb/mysql/header.cxx +++ b/odb/mysql/header.cxx @@ -377,7 +377,7 @@ namespace mysql // query () // - os << "static shared_ptr<result_impl<object_type> >" << endl + os << "static result<object_type>" << endl << "query (database&, const query_type&);" << endl; diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index 7d42b30..68d5493 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -963,7 +963,7 @@ namespace mysql // query () // - os << "shared_ptr<result_impl< " << traits << "::object_type> >" << endl + os << "result< " << traits << "::object_type >" << endl << traits << "::" << endl << "query (database&, const query_type& q)" << "{" @@ -986,7 +986,7 @@ namespace mysql << endl << "shared_ptr<odb::result_impl<object_type> > r (" << endl << "new (shared) mysql::result_impl<object_type> (st, sts));" - << "return r;" + << "return result<object_type> (r);" << "}"; } |