diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-22 12:28:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-22 12:29:42 +0200 |
commit | 5adb99be4d837b439872a94be2f2a36129762585 (patch) | |
tree | 41b9e0b293e92d2dec3b1b60213143365ac6d342 /odb/pgsql/object-result.txx | |
parent | bae6ada688e0b09c773edc9b9f7e54f98b019cad (diff) |
Add support for composite object ids
New pragma id_type (member). New test: common/composite-id. The composite
example has also been updated.
Diffstat (limited to 'odb/pgsql/object-result.txx')
-rw-r--r-- | odb/pgsql/object-result.txx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/pgsql/object-result.txx b/odb/pgsql/object-result.txx index 23a8ac3..3a20e2d 100644 --- a/odb/pgsql/object-result.txx +++ b/odb/pgsql/object-result.txx @@ -49,7 +49,7 @@ namespace odb object_traits::callback (db, obj, callback_event::pre_load); typename object_traits::image_type& i (statements_.image ()); - object_traits::init (obj, i, db); + object_traits::init (obj, i, &db); // Initialize the id image and binding and load the rest of the object // (containers, etc). @@ -196,7 +196,7 @@ namespace odb odb::database& db (this->database ()); object_traits::callback (db, obj, callback_event::pre_load); - object_traits::init (obj, im, db); + object_traits::init (obj, im, &db); object_traits::callback (db, obj, callback_event::post_load); } |