From 164b277b51a14573cd99e117f21f1624fbe5a562 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 10 Jun 2011 09:12:52 +0200 Subject: Implement remainder of PostgreSQL context --- odb/relational/pgsql/context.hxx | 50 +++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'odb/relational/pgsql/context.hxx') diff --git a/odb/relational/pgsql/context.hxx b/odb/relational/pgsql/context.hxx index f570c86..3190bb3 100644 --- a/odb/relational/pgsql/context.hxx +++ b/odb/relational/pgsql/context.hxx @@ -29,7 +29,7 @@ namespace relational // REAL, DOUBLE, - DECIMAL, + NUMERIC, // Data-time types. // @@ -68,35 +68,37 @@ namespace relational class context: public virtual relational::context { - // public: - // sql_type const& - // column_sql_type (semantics::data_member&, - // string const& key_prefix = string ()); - - // protected: - // virtual bool - // grow_impl (semantics::class_&); - - // virtual bool - // grow_impl (semantics::data_member&); - - // virtual bool - // grow_impl (semantics::data_member&, semantics::type&, string const&); - - // protected: - // virtual string - // database_type_impl (semantics::type&, - // semantics::names*, - // semantics::context&, - // column_type_flags); + public: + sql_type const& + column_sql_type (semantics::data_member&, + string const& key_prefix = string ()); + + protected: + virtual bool + grow_impl (semantics::class_&); + + virtual bool + grow_impl (semantics::data_member&); + + virtual bool + grow_impl (semantics::data_member&, semantics::type&, string const&); + + protected: + virtual string + database_type_impl (semantics::type& t, + semantics::names* hint, + semantics::context& ctx, + column_type_flags f) + { + return base_context::database_type_impl (t, hint, ctx, f); + } public: virtual ~context (); context (); - - // context (std::ostream&, semantics::unit&, options_type const&); + context (std::ostream&, semantics::unit&, options_type const&); static context& current () -- cgit v1.1