From 3c15bda3f1f2a4baf6e760be1df4731f04a2a0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=A4=A7=E6=B4=8B?= <714403855@qq.com> Date: Tue, 9 Dec 2025 18:42:52 +0800 Subject: [PATCH] fix quote --- src/memos/graph_dbs/polardb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memos/graph_dbs/polardb.py b/src/memos/graph_dbs/polardb.py index 551c6d82e..8dff5824a 100644 --- a/src/memos/graph_dbs/polardb.py +++ b/src/memos/graph_dbs/polardb.py @@ -4056,7 +4056,7 @@ def _build_filter_conditions_cypher( if filter: def escape_cypher_string(value: str) -> str: - return value.replace("'", "''") + return value.replace("'", "\\'") def build_cypher_filter_condition(condition_dict: dict) -> str: """Build a Cypher WHERE condition for a single filter item."""