From b6f6e4cbbff4681550b3b163b5d4ab2c3ba44819 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 29 Aug 2014 12:06:46 +0200 Subject: Pass non-const image to clone_image(), copy_image() This is necessary since some databases need to steal stuff from the original image (e.g., LOB descriptors in Oracle). --- odb/relational/header.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'odb/relational/header.cxx') diff --git a/odb/relational/header.cxx b/odb/relational/header.cxx index ddb9635..476aad3 100644 --- a/odb/relational/header.cxx +++ b/odb/relational/header.cxx @@ -706,12 +706,16 @@ traverse_object (type& c) << "root_image (image_type&);" << endl; + // Note that the original image is non-const since for some databases + // the copy "steals" stuff from the original (e.g., LOB descriptors in + // Oracle). + // os << "static image_type*" << endl - << "clone_image (const image_type&);" + << "clone_image (image_type&);" << endl; os << "static void" << endl - << "copy_image (image_type&, const image_type&);" + << "copy_image (image_type&, image_type&);" << endl; os << "static void" << endl -- cgit v1.1