From bda9f579d41ffc9c8a7d7fad0c2be7dfce620495 Mon Sep 17 00:00:00 2001 From: DvirDukhan Date: Mon, 16 Sep 2019 12:40:13 +0300 Subject: [PATCH] quote_string handles empty string --- redisgraph/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redisgraph/util.py b/redisgraph/util.py index d570d59..6afe79a 100644 --- a/redisgraph/util.py +++ b/redisgraph/util.py @@ -15,6 +15,8 @@ def quote_string(v): """ if not isinstance(v, str): return v + if len(v) == 0: + return '""' if v[0] != '"': v = '"' + v