Commit 8b977a6c authored by Monty's avatar Monty Committed by Sergei Petrunia

MDEV-14907 FEDERATEDX doesn't respect DISTINCT

This is a minor cleanup of the original commit
parent 9d0fbcc4
...@@ -240,16 +240,11 @@ class ha_federated: public handler ...@@ -240,16 +240,11 @@ class ha_federated: public handler
void position(const uchar *record); //required void position(const uchar *record); //required
/* /*
A ref is a pointer inside a local buffer. It is not comparable to A ref is a pointer inside a local buffer. It is not comparable to
other ref's. This is never called as HA_NON_COMPARABLE_ROWID is set. other ref's.
*/ */
int cmp_ref(const uchar *ref1, const uchar *ref2) int cmp_ref(const uchar *ref1, const uchar *ref2)
{ {
#ifdef NOT_YET return handler::cmp_ref(ref1,ref2); /* Works if table scan is used */
DBUG_ASSERT(0);
return 0;
#else
return handler::cmp_ref(ref1,ref2); /* Works if table scan is used */
#endif
} }
int info(uint); //required int info(uint); //required
int extra(ha_extra_function operation); int extra(ha_extra_function operation);
...@@ -285,4 +280,3 @@ class ha_federated: public handler ...@@ -285,4 +280,3 @@ class ha_federated: public handler
int execute_simple_query(const char *query, int len); int execute_simple_query(const char *query, int len);
int reset(void); int reset(void);
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment