diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-18 17:09:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-18 17:09:39 +0200 |
commit | afd2bed0af3d0c524758a3fa098b1b2062d89279 (patch) | |
tree | 70acff69969b268e03ad1d9cbdd844233c5f1aa8 /odb/relational/source.hxx | |
parent | f64c8e9a094b9b7ce2e12caff2455578b699d4ce (diff) |
Add newlines to the multi-line embedded schema creation statements
Diffstat (limited to 'odb/relational/source.hxx')
-rw-r--r-- | odb/relational/source.hxx | 7 |
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_; |