aboutsummaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-22 14:37:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-22 14:37:10 +0200
commit36863f5f31c202e45c8a406a321deb8d237cbc14 (patch)
tree73ddb6aa8d7d5c5ae3a4d0b47a7e9415b6787359 /odb/context.hxx
parent823ec53170fa7092bb0b88db13a3c5e64bf14159 (diff)
Add support for warning about SQL name truncations in Oracle
Also detect and issue diagnostics when such truncations lead to name conflicts.
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx7
1 files changed, 6 insertions, 1 deletions
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<std::streambuf*> 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;