From f244f1110a317ae1cf252477f8adc75734a9e7b2 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Wed, 21 Aug 2013 19:30:13 +0200 Subject: [PATCH] Added like method for text types --- include/sqlpp11/text.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sqlpp11/text.h b/include/sqlpp11/text.h index 0a906486..05869f57 100644 --- a/include/sqlpp11/text.h +++ b/include/sqlpp11/text.h @@ -127,6 +127,12 @@ namespace sqlpp return { *static_cast(this), std::forward(t) }; } + template + nary_expression_t::type> like(T&& t) const + { + return { *static_cast(this), std::forward(t) }; + } + }; };