diff options
Diffstat (limited to 'odb/mysql/source.cxx')
-rw-r--r-- | odb/mysql/source.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index a9f8a99..4854a68 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -911,8 +911,10 @@ namespace mysql << "{" << "pointer_type p (access::object_factory< " << type << " >::create ());" + << "pointer_traits< pointer_type >::guard g (p);" << "init (pointer_traits< pointer_type >::get_ref (p), " << "sts.image ());" + << "g.release ();" << "return p;" << "}" << "return pointer_type ();" |