summaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-19 13:54:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-19 13:54:39 +0200
commit164e70a313ffd245d2760c838a5a30475b7b75ff (patch)
treea3f54abbea691e4a7f7d5f73af70576dd7613d28 /odb/validator.cxx
parentd59e3c27450747e5a04585ee9e943376b5bcfa41 (diff)
Allow empty runtime and execute views
Use them to handle INSERT/UPDATE SQL Server stored procedures.
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