* testcaseModel: enclose values in sql with quotes, fix bug #37361.

This commit is contained in:
liugang
2023-08-16 16:40:08 +08:00
parent fda3665600
commit 7faf8629d6
+1 -1
View File
@@ -3592,7 +3592,7 @@ class testcaseModel extends model
}
$this->dao->update(TABLE_SCENE)->data($scene)->where('id')->eq($sceneID)->exec();
$this->dao->update(TABLE_SCENE)->set("path = REPLACE(path, {$oldScene->path}, {$scene->path})")
$this->dao->update(TABLE_SCENE)->set("path = REPLACE(path, '{$oldScene->path}', '{$scene->path}')")
->where('id')->ne($sceneID)
->andWhere('path')->like("{$oldScene->path}%")
->exec();