From 36863f5f31c202e45c8a406a321deb8d237cbc14 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Jan 2015 14:37:10 +0200 Subject: Add support for warning about SQL name truncations in Oracle Also detect and issue diagnostics when such truncations lead to name conflicts. --- odb/context.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index 0af3b3c..805691f 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -1512,7 +1512,8 @@ protected: ~data () {} data (std::ostream& os) - : os_ (os.rdbuf ()), + : extra_ (0), + os_ (os.rdbuf ()), in_comment_ (false), top_object_ (0), cur_object_ (0), @@ -1522,6 +1523,8 @@ protected: } public: + void* extra_; + std::ostream os_; std::stack os_stack_; @@ -1551,6 +1554,8 @@ protected: public: typedef ::features features_type; + void*& extra; // Extra data that may need to be shared by a sub-system. + std::ostream& os; semantics::unit& unit; options_type const& options; -- cgit v1.1