aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/mysql/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/mysql/context.cxx')
-rw-r--r--odb/relational/mysql/context.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/relational/mysql/context.cxx b/odb/relational/mysql/context.cxx
index ccd1861..59b93ba 100644
--- a/odb/relational/mysql/context.cxx
+++ b/odb/relational/mysql/context.cxx
@@ -122,9 +122,11 @@ namespace relational
virtual void
traverse (type& c)
{
+ bool view (context::view (c));
+
// Ignore transient bases.
//
- if (!(context::object (c) || context::composite (c)))
+ if (!(context::object (c) || view || context::composite (c)))
return;
if (c.count ("mysql-grow"))
@@ -133,7 +135,8 @@ namespace relational
{
// r_ should be false.
//
- inherits (c);
+ if (!view)
+ inherits (c);
if (!r_)
names (c);