Skip to content

Commit ac906db

Browse files
author
Joan He
committed
Merge remote-tracking branch 'origin/MAGETWO-38384' into develop
2 parents b6654ab + f88c451 commit ac906db

File tree

1 file changed

+1
-4
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,14 +2713,11 @@ public function prepareSqlCondition($fieldName, $condition)
27132713
'to' => "{{fieldName}} <= ?",
27142714
'seq' => null,
27152715
'sneq' => null,
2716+
'ntoa' => "INET_NTOA({{fieldName}}) LIKE ?",
27162717
];
27172718

27182719
$query = '';
27192720
if (is_array($condition)) {
2720-
if (isset($condition['field_expr'])) {
2721-
$fieldName = str_replace('#?', $this->quoteIdentifier($fieldName), $condition['field_expr']);
2722-
unset($condition['field_expr']);
2723-
}
27242721
$key = key(array_intersect_key($condition, $conditionKeyMap));
27252722

27262723
if (isset($condition['from']) || isset($condition['to'])) {

0 commit comments

Comments
 (0)