From 93fb6614f72a87af9cf8c935a49988a16df5a5c9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Mar 2015 16:30:36 +0200 Subject: Get pointer_type from correct traits (object, view), part 2 --- odb/pgsql/database.hxx | 10 +++++----- odb/pgsql/database.ixx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'odb') diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx index ac34f6a..6ad1ba9 100644 --- a/odb/pgsql/database.hxx +++ b/odb/pgsql/database.hxx @@ -295,7 +295,7 @@ namespace odb // Query one API. // template - typename object_traits::pointer_type + typename result::pointer_type query_one (); template @@ -307,7 +307,7 @@ namespace odb query_value (); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const char*); template @@ -319,7 +319,7 @@ namespace odb query_value (const char*); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const std::string&); template @@ -331,7 +331,7 @@ namespace odb query_value (const std::string&); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const pgsql::query_base&); template @@ -343,7 +343,7 @@ namespace odb query_value (const pgsql::query_base&); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const odb::query_base&); template diff --git a/odb/pgsql/database.ixx b/odb/pgsql/database.ixx index 2e377e2..ab65be0 100644 --- a/odb/pgsql/database.ixx +++ b/odb/pgsql/database.ixx @@ -436,7 +436,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one () { return query_one (pgsql::query_base ()); @@ -457,7 +457,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const char* q) { return query_one (pgsql::query_base (q)); @@ -478,7 +478,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const std::string& q) { return query_one (pgsql::query_base (q)); @@ -499,7 +499,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const pgsql::query_base& q) { // T is always object_type. We also don't need to check for transaction @@ -529,7 +529,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const odb::query_base& q) { // Translate to native query. -- cgit v1.1