From 51419aca9c4bcc056ee87d5aa26fe3076f4593ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Mar 2011 10:04:20 +0200 Subject: Move to new "virtual functions in context" model --- odb/relational/mysql/context.cxx | 12 ++++++------ odb/relational/mysql/context.hxx | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'odb/relational/mysql') 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: -- cgit v1.1