aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx15
1 files changed, 4 insertions, 11 deletions
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