0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Fixed serialization of recursive common table expressions

This commit is contained in:
rbock 2015-03-04 07:43:15 +01:00
parent f1dc56a822
commit 3b2f666b53

View File

@ -71,13 +71,11 @@ namespace sqlpp
static Context& _(const T& t, Context& context) static Context& _(const T& t, Context& context)
{ {
context << '(';
serialize(t._lhs, context); serialize(t._lhs, context);
context << ") UNION "; context << " UNION ";
serialize(Flag{}, context); serialize(Flag{}, context);
context << " ("; context << " ";
serialize(t._rhs, context); serialize(t._rhs, context);
context << ')';
return context; return context;
} }
}; };