Skip to content
Permalink
Browse files

escape

  • Loading branch information...
galkinAIP authored and jochenklar committed Jan 15, 2018
1 parent 42dcfaf commit 8ed1818f42d285ea7dfec92484567b4cea43e641
Showing with 2 additions and 2 deletions.
  1. +2 −2 daiquiri/core/adapter/database/postgres.py
@@ -56,8 +56,8 @@ def fetch_pid(self):
return self.connection().connection.thread_id()

def escape_identifier(self, identifier):
# escape backticks whithin the identifier and backtick the string
return '`%s`' % identifier.replace('`', '``')
# escape quates whithin the identifier and quote the string
return '`%s`' % identifier.replace('"', '"')

def escape_string(self, string):
return "'%s'" % string

0 comments on commit 8ed1818

Please sign in to comment.
You can’t perform that action at this time.