From 25feb0393f8c8a1e9e0e0edf369b10b318a60599 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 27 Oct 2011 15:54:35 +0200 Subject: Implement query image change callback machinery --- odb/relational/oracle/source.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odb/relational/oracle/source.cxx') diff --git a/odb/relational/oracle/source.cxx b/odb/relational/oracle/source.cxx index a22c235..3383b6f 100644 --- a/odb/relational/oracle/source.cxx +++ b/odb/relational/oracle/source.cxx @@ -866,6 +866,14 @@ namespace relational } virtual void + init_image_pre (type& c) + { + if (options.generate_query () && !composite (c)) + os << "if (i.change_callback.callback != 0)" + << "(i.change_callback.callback) (i.change_callback.context);"; + } + + virtual void init_value_extra () { os << "sts.find_statement ().stream_result ();"; -- cgit v1.1