summaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-18 18:48:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-19 08:39:02 +0200
commitcdb791febe6c9ab2cfa36b1a07dfc71548674cf1 (patch)
tree381ebc4dcdf3fa5b8b0783921678597d45de032b /odb
parent8e1aea264006aea12e8462d8cc0f4a607374a699 (diff)
Move extra headers hook to the beginning
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/source.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
index bd94eba..44c4959 100644
--- a/odb/relational/source.hxx
+++ b/odb/relational/source.hxx
@@ -2494,6 +2494,8 @@ namespace relational
virtual void
generate ()
{
+ extra_pre ();
+
os << "#include <odb/cache-traits.hxx>" << endl;
if (embedded_schema)
@@ -2506,8 +2508,6 @@ namespace relational
os << endl;
- extra_pre ();
-
os << "#include <odb/" << db << "/traits.hxx>" << endl
<< "#include <odb/" << db << "/database.hxx>" << endl
<< "#include <odb/" << db << "/transaction.hxx>" << endl