summaryrefslogtreecommitdiff
path: root/odb/relational/source.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-18 17:09:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-18 17:09:39 +0200
commitafd2bed0af3d0c524758a3fa098b1b2062d89279 (patch)
tree70acff69969b268e03ad1d9cbdd844233c5f1aa8 /odb/relational/source.hxx
parentf64c8e9a094b9b7ce2e12caff2455578b699d4ce (diff)
Add newlines to the multi-line embedded schema creation statements
Diffstat (limited to 'odb/relational/source.hxx')
-rw-r--r--odb/relational/source.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
index 0003021..56a356b 100644
--- a/odb/relational/source.hxx
+++ b/odb/relational/source.hxx
@@ -3389,19 +3389,20 @@ namespace relational
os << "db.execute (";
}
else
- os << endl;
+ os << strlit (line_ + '\n') << endl;
- os << strlit (l);
+ line_ = l;
}
virtual void
post ()
{
if (!first_) // Ignore empty statements.
- os << ");" << endl;
+ os << strlit (line_) << ");" << endl;
}
private:
+ std::string line_;
bool first_;
bool empty_;
bool new_pass_;