aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 20:03:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 20:03:32 +0200
commitf7adb8951f09538d879b82ba41c44f4314df4e2c (patch)
treec2f13615f23739f71eb58d1a16d13c0666d1f952
parent05336897421794a1b1cc6662a146330c2743c509 (diff)
Move shared_ptr to the details namespace
-rw-r--r--odb/mysql/header.cxx13
-rw-r--r--odb/mysql/source.cxx12
2 files changed, 14 insertions, 11 deletions
diff --git a/odb/mysql/header.cxx b/odb/mysql/header.cxx
index 854d3f4..743b92e 100644
--- a/odb/mysql/header.cxx
+++ b/odb/mysql/header.cxx
@@ -104,7 +104,7 @@ namespace mysql
virtual void
traverse_long_string (type&, sql_type const& t)
{
- os << "odb::buffer " << var << "value;"
+ os << "details::buffer " << var << "value;"
<< "unsigned long " << var << "size;"
<< "my_bool " << var << "null;"
<< endl;
@@ -128,7 +128,7 @@ namespace mysql
{
// Represented as string.
//
- os << "odb::buffer " << var << "value;"
+ os << "details::buffer " << var << "value;"
<< "unsigned long " << var << "size;"
<< "my_bool " << var << "null;"
<< endl;
@@ -139,7 +139,7 @@ namespace mysql
{
// Represented as string.
//
- os << "odb::buffer " << var << "value;"
+ os << "details::buffer " << var << "value;"
<< "unsigned long " << var << "size;"
<< "my_bool " << var << "null;"
<< endl;
@@ -447,8 +447,7 @@ namespace mysql
<< endl;
ctx.os << "#include <odb/core.hxx>" << endl
- << "#include <odb/traits.hxx>" << endl
- << "#include <odb/buffer.hxx>" << endl;
+ << "#include <odb/traits.hxx>" << endl;
if (ctx.options.generate_query ())
ctx.os << "#include <odb/result.hxx>" << endl;
@@ -460,7 +459,9 @@ namespace mysql
if (ctx.options.generate_query ())
ctx.os << "#include <odb/mysql/query.hxx>" << endl;
- ctx.os << endl;
+ ctx.os << endl
+ << "#include <odb/details/buffer.hxx>" << endl
+ << endl;
ctx.os << "namespace odb"
<< "{";
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;