Commit f3047906 authored by mskold@mysql.com's avatar mskold@mysql.com

Merge fix for condition pushdown to storage engine

parent d46c3805
......@@ -5815,8 +5815,8 @@ ha_ndbcluster::build_scan_filter_predicate(Ndb_cond *cond,
if (value->qualification.value_type != Item::STRING_ITEM) break;
String *str= value->getStringValue();
DBUG_PRINT("info", ("Generating LIKE filter: like(%d,%s,%d)", field->getFieldNo(), str->ptr(), str->length()));
filter->like(field->getFieldNo(),
str->ptr(), str->length(), TRUE);
//filter->like(field->getFieldNo(),
// str->ptr(), str->length(), TRUE);
DBUG_RETURN(cond->next->next->next);
}
case(Item_func::NOTLIKE_FUNC): {
......@@ -5835,8 +5835,8 @@ ha_ndbcluster::build_scan_filter_predicate(Ndb_cond *cond,
if (value->qualification.value_type != Item::STRING_ITEM) break;
String *str= value->getStringValue();
DBUG_PRINT("info", ("Generating NOTLIKE filter: notlike(%d,%s,%d)", field->getFieldNo(), str->ptr(), str->length()));
filter->notlike(field->getFieldNo(),
str->ptr(), str->length());
//filter->notlike(field->getFieldNo(),
// str->ptr(), str->length());
DBUG_RETURN(cond->next->next->next);
}
case(Item_func::ISNULL_FUNC):
......
......@@ -433,10 +433,6 @@ class ha_ndbcluster: public handler
NdbIndexScanOperation *m_multi_cursor;
byte *m_multi_range_cursor_result_ptr;
int setup_recattr(const NdbRecAttr*);
friend int execute_no_commit(ha_ndbcluster*, NdbTransaction*);
friend int execute_commit(ha_ndbcluster*, NdbTransaction*);
friend int execute_no_commit_ie(ha_ndbcluster*, NdbTransaction*);
};
bool ndbcluster_init(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