aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-08 17:27:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-08 17:27:53 +0200
commit2d228c59fc6bd96944f91912c2b174cc63f56aab (patch)
treed7747502fe49451650feb9c71366932151fc5f10
parentc8e655a2acc2dfe9056f00c9ade143b81ed07c22 (diff)
Add operator+= (query, query_column)
-rw-r--r--odb/mssql/query.hxx12
1 files changed, 12 insertions, 0 deletions
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 <typename T, database_type_id ID>
+ query_base&
+ operator+= (const query_column<T, ID>&);
+
// Implementation details.
//
public:
@@ -1477,6 +1481,14 @@ namespace odb
return r;
}
+ template <typename T, database_type_id ID>
+ inline query_base& query_base::
+ operator+= (const query_column<T, ID>& c)
+ {
+ append (c.table (), c.column ());
+ return *this;
+ }
+
//
//
template <typename T, database_type_id>