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

Commit d9ded37

Browse files
committed
Like was causing multiple rows to be added to ajxp_index when changing directory pathname
1 parent d954b07 commit d9ded37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/meta.syncable/class.ChangesTracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public function updateNodesIndex($oldNode = null, $newNode = null, $copy = false
565565
dibi::query("UPDATE [ajxp_index] SET [node_path]=REPLACE( REPLACE(CONCAT('$$$',[node_path]), CONCAT('$$$', %s), CONCAT('$$$', %s)) , '$$$', '') ",
566566
SystemTextEncoding::toUTF8($oldNode->getPath()),
567567
SystemTextEncoding::toUTF8($newNode->getPath())
568-
, "WHERE [node_path] LIKE %like~ AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId);
568+
, "WHERE [node_path] = %s AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId);
569569
try{
570570
$rowCount = dibi::getAffectedRows();
571571
if($rowCount === 0){

0 commit comments

Comments
 (0)