summaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-20 06:48:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-20 06:48:28 +0200
commit8fceda2b30ecfa4458159e3c765e0aac7004f2f6 (patch)
treefc35dedf7e5bc5cfc1bc8e7458d986d7d8802c97 /odb/validator.cxx
parente85b07722107d00e4a3182ff4d33274a617bb55a (diff)
parent19ba3497c0788f02fc417f441d87c96ce23f9446 (diff)
Merge branch 'master' into bulk
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