summaryrefslogtreecommitdiff
path: root/odb/relational
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-10 10:04:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 15:39:59 +0200
commit51419aca9c4bcc056ee87d5aa26fe3076f4593ef (patch)
tree43cb3532098c3573a6b1d88717f72257aa77c8d6 /odb/relational
parentdcb7bcd541f77b280e5733da9ec1eb24574e0d9e (diff)
Move to new "virtual functions in context" model
Diffstat (limited to 'odb/relational')
-rw-r--r--odb/relational/mysql/context.cxx12
-rw-r--r--odb/relational/mysql/context.hxx12
2 files changed, 12 insertions, 12 deletions
diff --git a/odb/relational/mysql/context.cxx b/odb/relational/mysql/context.cxx
index 014aa7d..3fc09d2 100644
--- a/odb/relational/mysql/context.cxx
+++ b/odb/relational/mysql/context.cxx
@@ -218,13 +218,13 @@ namespace relational
// SQL type parsing.
//
- string context::data::
- column_type_impl (semantics::type& t,
- string const& type,
- semantics::context& ctx,
- column_type_flags f) const
+ string context::
+ database_type_impl (semantics::type& t,
+ string const& type,
+ semantics::context& ctx,
+ column_type_flags f)
{
- string r (::context::data::column_type_impl (t, type, ctx, f));
+ string r (::context::database_type_impl (t, type, ctx, f));
if (!r.empty () && ctx.count ("auto") && (f & ctf_object_id_ref) == 0)
r += " AUTO_INCREMENT";
diff --git a/odb/relational/mysql/context.hxx b/odb/relational/mysql/context.hxx
index b1de84c..4141a4a 100644
--- a/odb/relational/mysql/context.hxx
+++ b/odb/relational/mysql/context.hxx
@@ -94,16 +94,16 @@ namespace relational
virtual string
quote_id_impl (string const&) const;
+ protected:
+ virtual string
+ database_type_impl (semantics::type&,
+ string const& type,
+ semantics::context&,
+ column_type_flags);
private:
struct data: base_context::data
{
data (std::ostream& os): base_context::data (os) {}
-
- virtual string
- column_type_impl (semantics::type&,
- string const& type,
- semantics::context&,
- column_type_flags) const;
};
private: