Skip to content

Commit eb60331

Browse files
authored
Handle special characters (#643)
1 parent f6eeff9 commit eb60331

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/memos/graph_dbs/polardb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3747,7 +3747,7 @@ def _build_filter_conditions_cypher(
37473747
if filter:
37483748

37493749
def escape_cypher_string(value: str) -> str:
3750-
return value.replace("'", "\\'")
3750+
return value.replace("'", "''")
37513751

37523752
def build_cypher_filter_condition(condition_dict: dict) -> str:
37533753
"""Build a Cypher WHERE condition for a single filter item."""
@@ -4286,6 +4286,7 @@ def parse_filter(
42864286
"node_type",
42874287
"info",
42884288
"source",
4289+
"file_ids",
42894290
}
42904291

42914292
def process_condition(condition):

0 commit comments

Comments
 (0)