From 2d228c59fc6bd96944f91912c2b174cc63f56aab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Sep 2015 17:27:53 +0200 Subject: Add operator+= (query, query_column) --- odb/mssql/query.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/odb/mssql/query.hxx b/odb/mssql/query.hxx index 67b2d26..3097641 100644 --- a/odb/mssql/query.hxx +++ b/odb/mssql/query.hxx @@ -415,6 +415,10 @@ namespace odb return *this; } + template + query_base& + operator+= (const query_column&); + // Implementation details. // public: @@ -1477,6 +1481,14 @@ namespace odb return r; } + template + inline query_base& query_base:: + operator+= (const query_column& c) + { + append (c.table (), c.column ()); + return *this; + } + // // template -- cgit v1.1