aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/polymorphic-object-statements.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-18 09:32:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-18 09:32:09 +0200
commit1ec822dd7c4d6abc4f1cd42bd398c53fe4897a4a (patch)
treed98c1cdc8f21c9d5c8725bc3937467b603ce1bf3 /odb/mysql/polymorphic-object-statements.txx
parentaf2808859e7a98666785752b8069c473dda94a1f (diff)
Allocate container traits lazily and only when their definition is seen
This fixes a problem with polymorphic hierarchies spread over multiple files in which case the source code for the derived class does not have the definition of the container traits for the base class. See the comment in the source code for further details.
Diffstat (limited to 'odb/mysql/polymorphic-object-statements.txx')
-rw-r--r--odb/mysql/polymorphic-object-statements.txx1
1 files changed, 0 insertions, 1 deletions
diff --git a/odb/mysql/polymorphic-object-statements.txx b/odb/mysql/polymorphic-object-statements.txx
index 19e5d52..9f75fcf 100644
--- a/odb/mysql/polymorphic-object-statements.txx
+++ b/odb/mysql/polymorphic-object-statements.txx
@@ -76,7 +76,6 @@ namespace odb
: statements_base (conn),
root_statements_ (conn.statement_cache ().find_object<root_type> ()),
base_statements_ (conn.statement_cache ().find_object<base_type> ()),
- container_statement_cache_ (conn),
insert_image_binding_ (insert_image_bind_, insert_column_count),
update_image_binding_ (update_image_bind_,
update_column_count + id_column_count)