diff options
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_; |