From a7bd7367e246ec5b6bb2e2f018a05173ff7e6301 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Sep 2011 11:20:31 +0200 Subject: Add support for associating tables with views --- odb/relational/inline.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odb/relational/inline.hxx') diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx index 9abc86f..78d81bf 100644 --- a/odb/relational/inline.hxx +++ b/odb/relational/inline.hxx @@ -274,7 +274,9 @@ namespace relational // query_type // - if (c.count ("objects")) + size_t obj_count (c.get ("object-count")); + + if (obj_count != 0) { os << "inline" << endl << traits << "::query_type::" << endl -- cgit v1.1