Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Like was causing multiple rows to be added to ajxp_index when changin…
Browse files Browse the repository at this point in the history
…g directory pathname
  • Loading branch information
ghecquet committed May 13, 2016
1 parent d954b07 commit d9ded37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/meta.syncable/class.ChangesTracker.php
Expand Up @@ -565,7 +565,7 @@ public function updateNodesIndex($oldNode = null, $newNode = null, $copy = false
dibi::query("UPDATE [ajxp_index] SET [node_path]=REPLACE( REPLACE(CONCAT('$$$',[node_path]), CONCAT('$$$', %s), CONCAT('$$$', %s)) , '$$$', '') ",
SystemTextEncoding::toUTF8($oldNode->getPath()),
SystemTextEncoding::toUTF8($newNode->getPath())
, "WHERE [node_path] LIKE %like~ AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId);
, "WHERE [node_path] = %s AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId);
try{
$rowCount = dibi::getAffectedRows();
if($rowCount === 0){
Expand Down

0 comments on commit d9ded37

Please sign in to comment.