summaryrefslogtreecommitdiff
path: root/odb/mysql/source.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/source.cxx')
-rw-r--r--odb/mysql/source.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx
index c8d691f..1e91344 100644
--- a/odb/mysql/source.cxx
+++ b/odb/mysql/source.cxx
@@ -990,15 +990,15 @@ namespace mysql
<< "if (imb.version == 0)" << endl
<< "bind (imb, sts.image ());"
<< endl
- << "shared_ptr<query_statement> st (" << endl
- << "new (shared) query_statement (conn," << endl
+ << "details::shared_ptr<query_statement> st (" << endl
+ << "new (details::shared) query_statement (conn," << endl
<< "query_clause + q.clause ()," << endl
<< "imb," << endl
<< "q.parameters ()));"
<< "st->execute ();"
<< endl
- << "shared_ptr<odb::result_impl<object_type> > r (" << endl
- << "new (shared) mysql::result_impl<object_type> (st, sts));"
+ << "details::shared_ptr<odb::result_impl<object_type> > r (" << endl
+ << "new (details::shared) mysql::result_impl<object_type> (st, sts));"
<< "return result<object_type> (r);"
<< "}";
}
@@ -1043,7 +1043,9 @@ namespace mysql
<< "#include <odb/mysql/exceptions.hxx>" << endl;
if (ctx.options.generate_query ())
- ctx.os << "#include <odb/mysql/result.hxx>" << endl;
+ ctx.os << "#include <odb/mysql/result.hxx>" << endl
+ << endl
+ << "#include <odb/details/shared-ptr.hxx>" << endl;
ctx.os << endl;