Skip to content
Permalink
Browse files
fixed #1048 DELETE statements with id explicitly set or id list provi…
…ded to skip search
  • Loading branch information
tomatolog committed Sep 27, 2019
1 parent 66d26ec commit 92a46edaa196ef33f3ac2225fbdba2c2b88ee45d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/searchd.cpp
@@ -14613,7 +14613,7 @@ void sphHandleMysqlDelete ( StmtErrorReporter_i & tOut, const SqlStmt_t & tStmt,
{
const CSphFilterSettings* pFilter = tQuery.m_dFilters.Begin();
if ( ( pFilter->m_bHasEqualMin || pFilter->m_bHasEqualMax ) && pFilter->m_eType==SPH_FILTER_VALUES
&& pFilter->m_sAttrName=="@id" && !pFilter->m_bExclude )
&& ( pFilter->m_sAttrName=="@id" || pFilter->m_sAttrName=="id" ) && !pFilter->m_bExclude )
{
pDocs = (DocID_t *)pFilter->GetValueArray();
iDocsCount = pFilter->GetNumValues();

0 comments on commit 92a46ed

Please sign in to comment.