Skip to content

Commit c36727d

Browse files
committed
Avoid infinite loop in quoteString
1 parent 35f7839 commit c36727d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/db_manager/db_plugins/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def quoteId(self, identifier):
196196
@classmethod
197197
def quoteString(self, txt):
198198
""" make the string safe - replace ' with '' """
199-
if hasattr(txt, '__iter__'):
199+
if hasattr(txt, '__iter__') and not isinstance(txt, str):
200200
txts = list()
201201
for i in txt:
202202
if i is None:

0 commit comments

Comments
 (0)