diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-20 18:10:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-20 18:10:27 +0200 |
commit | e5f6d58885c6555a576bcc53b82797fdc6f241bf (patch) | |
tree | 1f46cf8086b43680794a8151c337da0437e92892 /odb/relational/sqlite/source.cxx | |
parent | 2731c14f6b16b8b40eb9b1c9061e6e296f3d49f8 (diff) |
Diffstat (limited to 'odb/relational/sqlite/source.cxx')
-rw-r--r-- | odb/relational/sqlite/source.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/relational/sqlite/source.cxx b/odb/relational/sqlite/source.cxx index 7d29c1e..03467cc 100644 --- a/odb/relational/sqlite/source.cxx +++ b/odb/relational/sqlite/source.cxx @@ -93,6 +93,12 @@ namespace relational if (container (mi)) return false; + // Ignore polymorphic id references; they are not returned by + // the select statement. + // + if (mi.ptr != 0 && mi.m.count ("polymorphic-ref")) + return false; + ostringstream ostr; ostr << "t[" << index_ << "UL]"; e = ostr.str (); |