Cleanup parens for EXISTS

This commit is contained in:
Roland Bock
2023-02-04 10:21:54 +01:00
parent 2d3967a0b3
commit 0731a8597d
3 changed files with 41 additions and 3 deletions

View File

@@ -80,9 +80,8 @@ namespace sqlpp
template <typename Context, typename Select>
Context& serialize(const exists_t<Select>& t, Context& context)
{
context << "EXISTS(";
serialize(t._select, context);
context << ")";
context << "EXISTS";
serialize_operand(t._select, context);
return context;
}