diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:36:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:36:33 +0200 |
commit | 428558c89850fe8c79b9c89a943bd996912d12f5 (patch) | |
tree | b6d8af6fd6a82b3e3822f7da4637c7c16ee7100d /odb/relational/mysql | |
parent | a7ec19749a76cc262240124f5c71c1ee4051cba7 (diff) |
Support for views; native part
Diffstat (limited to 'odb/relational/mysql')
-rw-r--r-- | odb/relational/mysql/context.cxx | 7 |
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); |