Allow TRIM to be used with sub selects

This commit is contained in:
Roland Bock
2023-02-04 09:05:04 +01:00
parent 3fba3e721e
commit 1c4f1f61c8
5 changed files with 49 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ namespace sqlpp
Context& serialize(const trim_t<Flag, Expr>& t, Context& context)
{
context << "TRIM(";
serialize(t._expr, context);
serialize_operand(t._expr, context);
context << ")";
return context;
}