Skip to content

Commit

Permalink
Merge pull request #4 from daniellienert/master
Browse files Browse the repository at this point in the history
[BUGFIX] Do not quote the prepared statement arguments.
  • Loading branch information
Christian Müller committed Mar 31, 2015
2 parents da916cf + 77c793f commit 3c86a3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Flowpack/SimpleSearch/Domain/Service/SqLiteIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function insertOrUpdatePropertiesToIndex($properties, $identifier) {
$statementArgumentNumber = 1;
foreach ($properties as $propertyName => $propertyValue) {
$propertyColumnNamesString .= '"' . $propertyName . '", ';
$valueNamesString .= '"' . $this->preparedStatementArgumentName($statementArgumentNumber) . '", ';
$valueNamesString .= $this->preparedStatementArgumentName($statementArgumentNumber) . ', ';
$statementArgumentNumber++;
}
$propertyColumnNamesString = trim($propertyColumnNamesString);
Expand Down Expand Up @@ -240,4 +240,4 @@ protected function adjustIndexToGivenProperties(array $propertyNames) {
}
}
}
}
}

0 comments on commit 3c86a3c

Please sign in to comment.