From 164e70a313ffd245d2760c838a5a30475b7b75ff Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Nov 2014 13:54:39 +0200 Subject: Allow empty runtime and execute views Use them to handle INSERT/UPDATE SQL Server stored procedures. --- odb/validator.cxx | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'odb/validator.cxx') diff --git a/odb/validator.cxx b/odb/validator.cxx index f8f7408..4bd4c95 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -1423,18 +1423,11 @@ namespace } virtual void - traverse_view (type& c) + traverse_view (type&) { - // Allow all the members to be deleted. - // - column_count_type const& cc (column_count (c)); - - if (cc.total == 0) - { - os << c.file () << ":" << c.line () << ":" << c.column () << ":" - << " error: no persistent data members in the class" << endl; - valid_ = false; - } + // We don't check for the column count here since we may want to + // allow certain kinds of empty views. Instead, this is handled + // in relational::validation. } virtual void -- cgit v1.1