Skip to content

Commit

Permalink
- change quoting to avoid the escape
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Apr 25, 2019
1 parent d0f8866 commit d1d43ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shared/DC/ZRDB/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def connect(self, s):
return self

def sql_quote__(self, v):
if v.find('\'') >= 0:
v = "''".join(v.split("\'"))
if v.find("'") >= 0:
v = "''".join(v.split("'"))
if v.find('\x00') >= 0:
v = ''.join(v.split('\x00'))
return "'%s'" % v
Expand Down

0 comments on commit d1d43ae

Please sign in to comment.