andrew-s / codeigniter-sphinxrt

5 stars 5 forks source link

Possible Bug In Delete Function #1

Open gte451f opened 11 years ago

gte451f commented 11 years ago

Around line 349 when deleting records based on a supplied array of IDs. It should probably read

$query .= ' WHERE id IN (' . implode(',', $data_array) . ')';

Current Code:

// is it a query?
if(is_array($data_array))
{
// process
// this should be a list of id's
$query .= ' WHERE IN (' . implode(',', $data_array) . ')';
}
else

See: http://sphinxsearch.com/docs/archives/2.0.4/sphinxql-delete.html

andrew-s commented 11 years ago

Well spotted, I'm working on a new version that should make things a bit easier and have a bit more sense to it.