diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-15 17:46:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-15 17:46:28 +0200 |
commit | 89a3b6133ade1ccb3a8e9ab9c86eac6aaef5db69 (patch) | |
tree | 394eb90c5acc9b55460bc7e4961cf791a60e397d /odb/mysql/source.cxx | |
parent | 61acf05c698a8b611c5ccf6aed8d3e654d5acf8e (diff) |
Add support for custom object pointers
New option: --default-pointer. New object pragma specifier: pointer.
Diffstat (limited to 'odb/mysql/source.cxx')
-rw-r--r-- | odb/mysql/source.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/mysql/source.cxx b/odb/mysql/source.cxx index 29495df..2e54a04 100644 --- a/odb/mysql/source.cxx +++ b/odb/mysql/source.cxx @@ -2174,8 +2174,8 @@ namespace mysql << "bool grew (false);" << "if (find (sts, id, grew))" << "{" - << "pointer_type p (access::object_factory< " << type << - " >::create ());" + << "pointer_type p (access::object_factory< object_type, " << + "pointer_type >::create ());" << "pointer_traits< pointer_type >::guard g (p);" << "object_type& obj (pointer_traits< pointer_type >::get_ref (p));" << "init (obj, sts.image ());"; |