aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 18:26:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 18:26:50 +0200
commit35d912d70bc7073f173f22bb5948a00b3c4be3f8 (patch)
tree8bf4cb7885eb7c889d9d1de4d6cee067902b90be
parenta243907cfe4f39f9b74eea88a41bf535a42158ce (diff)
Move buffer to the details namespace
-rw-r--r--odb/mysql/connection-factory.hxx1
-rw-r--r--odb/mysql/query.hxx6
-rw-r--r--odb/mysql/traits.hxx6
3 files changed, 9 insertions, 4 deletions
diff --git a/odb/mysql/connection-factory.hxx b/odb/mysql/connection-factory.hxx
index bb439a8..50072b2 100644
--- a/odb/mysql/connection-factory.hxx
+++ b/odb/mysql/connection-factory.hxx
@@ -85,6 +85,7 @@ namespace odb
db_ (0),
cond_ (mutex_)
{
+ // @@ check min_ <= max_
}
virtual shared_ptr<connection>
diff --git a/odb/mysql/query.hxx b/odb/mysql/query.hxx
index fe53bd5..dd7e0cb 100644
--- a/odb/mysql/query.hxx
+++ b/odb/mysql/query.hxx
@@ -19,6 +19,8 @@
#include <odb/mysql/forward.hxx>
#include <odb/mysql/traits.hxx>
+#include <odb/details/buffer.hxx>
+
namespace odb
{
namespace mysql
@@ -1524,7 +1526,7 @@ namespace odb
}
private:
- buffer buffer_;
+ details::buffer buffer_;
unsigned long size_;
};
@@ -1562,7 +1564,7 @@ namespace odb
}
private:
- buffer buffer_;
+ details::buffer buffer_;
unsigned long size_;
};
}
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx
index fd0b917..b415bd1 100644
--- a/odb/mysql/traits.hxx
+++ b/odb/mysql/traits.hxx
@@ -16,6 +16,8 @@
#include <odb/mysql/version.hxx>
+#include <odb/details/buffer.hxx>
+
namespace odb
{
namespace mysql
@@ -207,7 +209,7 @@ namespace odb
}
static void
- set_image (buffer& b,
+ set_image (details::buffer& b,
std::size_t& n,
bool& is_null,
const std::string& v)
@@ -253,7 +255,7 @@ namespace odb
}
static void
- set_image (buffer& b,
+ set_image (details::buffer& b,
std::size_t& n,
bool& is_null,
const char* v)