diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-06-06 14:09:06 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-06-06 14:09:06 +0400 |
commit | c20cd68e60465f43266fe2bc2b2190e7c1cc4983 (patch) | |
tree | 16beb4138d72ba2fac7c33fab3cf94b3591fc3cf /storage/sphinx | |
parent | 395212446acec1191d570d15eb03219c2cb11791 (diff) | |
download | mariadb-git-c20cd68e60465f43266fe2bc2b2190e7c1cc4983.tar.gz |
MDEV-14630 Replace {STRING|INT|REAL|DECIMAL|DATE}_ITEM to CONST_ITEM
Diffstat (limited to 'storage/sphinx')
-rw-r--r-- | storage/sphinx/ha_sphinx.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/sphinx/ha_sphinx.cc b/storage/sphinx/ha_sphinx.cc index 580b3fe539f..f611d66496e 100644 --- a/storage/sphinx/ha_sphinx.cc +++ b/storage/sphinx/ha_sphinx.cc @@ -2746,7 +2746,9 @@ const Item * ha_sphinx::cond_push ( const Item *cond ) if ( !m_pShare->m_bSphinxQL ) { // on non-QL tables, intercept query=value condition for SELECT - if (!( args[0]->type()==Item::FIELD_ITEM && args[1]->type()==Item::STRING_ITEM )) + if (!( args[0]->type()==Item::FIELD_ITEM && + args[1]->is_of_type(Item::CONST_ITEM, + STRING_RESULT))) break; Item_field * pField = (Item_field *) args[0]; @@ -2762,7 +2764,9 @@ const Item * ha_sphinx::cond_push ( const Item *cond ) } else { - if (!( args[0]->type()==Item::FIELD_ITEM && args[1]->type()==Item::INT_ITEM )) + if (!( args[0]->type()==Item::FIELD_ITEM && + args[1]->is_of_type(Item::CONST_ITEM, + INT_RESULT))) break; // on QL tables, intercept id=value condition for DELETE |