Skip to content

Commit

Permalink
[fix] Fix incorrect IN data #666
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed Nov 21, 2017
1 parent 5a427b4 commit 1bd65d7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,7 @@ protected function dataImplode($data, &$map, $conjunctor)
foreach ($value as $index => $item)
{
$placeholders[] = $map_key . $index;
$map[ $map_key . $index ] = [
$item,
$this->typeMap($item, gettype($item))
];
$map[ $map_key . $index ] = $this->typeMap($item, gettype($item));
}

$stack[] = $column . ' NOT IN (' . implode(', ', $placeholders) . ')';
Expand Down Expand Up @@ -687,10 +684,7 @@ protected function dataImplode($data, &$map, $conjunctor)
foreach ($value as $index => $item)
{
$placeholders[] = $map_key . $index;
$map[ $map_key . $index ] = [
$item,
$this->typeMap($item, gettype($item))
];
$map[ $map_key . $index ] = $this->typeMap($item, gettype($item));
}

$stack[] = $column . ' IN (' . implode(', ', $placeholders) . ')';
Expand Down

0 comments on commit 1bd65d7

Please sign in to comment.