Skip to content

Commit 19fd905

Browse files
authored
ENGCOM-4208: [Backport] Add filter for NOT FIND_IN_SET sql conditions #21123
2 parents 65ff6cd + 8f30b3e commit 19fd905

File tree

1 file changed

+2
-0
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+2
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,6 +2854,7 @@ public function endSetup()
28542854
* - array("gteq" => $greaterOrEqualValue)
28552855
* - array("lteq" => $lessOrEqualValue)
28562856
* - array("finset" => $valueInSet)
2857+
* - array("nfinset" => $valueNotInSet)
28572858
* - array("regexp" => $regularExpression)
28582859
* - array("seq" => $stringValue)
28592860
* - array("sneq" => $stringValue)
@@ -2883,6 +2884,7 @@ public function prepareSqlCondition($fieldName, $condition)
28832884
'gteq' => "{{fieldName}} >= ?",
28842885
'lteq' => "{{fieldName}} <= ?",
28852886
'finset' => "FIND_IN_SET(?, {{fieldName}})",
2887+
'nfinset' => "NOT FIND_IN_SET(?, {{fieldName}})",
28862888
'regexp' => "{{fieldName}} REGEXP ?",
28872889
'from' => "{{fieldName}} >= ?",
28882890
'to' => "{{fieldName}} <= ?",

0 commit comments

Comments
 (0)