aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/relational/source.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
index 502d9f0..86d60c7 100644
--- a/odb/relational/source.hxx
+++ b/odb/relational/source.hxx
@@ -2351,11 +2351,8 @@ namespace relational
instance<object_joins> oj (c, t); //@@ (im)perfect forwarding
oj->traverse (c);
- // We only need DISTINCT if there are joins (object pointers)
- // and can optimize it out otherwise.
- //
os << "const char " << traits << "::query_clause[] =" << endl
- << strlit (oj->count () ? "SELECT DISTINCT " : "SELECT ") << endl;
+ << strlit ("SELECT ") << endl;
{
instance<object_columns> oc (table, true);