diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-07 11:03:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-07 11:03:33 +0200 |
commit | 5789a4f7c5cee94df29e37fd1c2f7c1d9e883002 (patch) | |
tree | 19b50e5ad738865692a0d1f077cbac24673d48fa /odb/mysql/source.cxx | |
parent | 2b460af3796203056f0a8a75017601e6e45e2906 (diff) |
Allow inheritance from transient bases for object and composite value types
Diffstat (limited to 'odb/mysql/source.cxx')
-rw-r--r-- | odb/mysql/source.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index 6f159c2..e09cbc3 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -512,6 +512,11 @@ namespace mysql virtual void traverse (type& c) { + // Ignore transient bases. + // + if (!(c.count ("object") || comp_value (c))) + return; + os << "// " << c.name () << " base" << endl << "//" << endl << "composite_value_traits< " << c.fq_name () << @@ -680,6 +685,11 @@ namespace mysql virtual void traverse (type& c) { + // Ignore transient bases. + // + if (!(c.count ("object") || comp_value (c))) + return; + os << "// " << c.name () << " base" << endl << "//" << endl << "if (composite_value_traits< " << c.fq_name () << @@ -956,6 +966,11 @@ namespace mysql virtual void traverse (type& c) { + // Ignore transient bases. + // + if (!(c.count ("object") || comp_value (c))) + return; + os << "// " << c.name () << " base" << endl << "//" << endl << "if (composite_value_traits< " << c.fq_name () << @@ -1207,6 +1222,11 @@ namespace mysql virtual void traverse (type& c) { + // Ignore transient bases. + // + if (!(c.count ("object") || comp_value (c))) + return; + os << "// " << c.name () << " base" << endl << "//" << endl << "composite_value_traits< " << c.fq_name () << |