def adapt_string(adapted): """Python implementation of psycopg/psycopg2#459 from v2.7""" if '\x00' in adapted: raise ValueError( "A string literal cannot contain NUL (0x00) characters.") return QuotedString(adapted)
def getquoted(self): s = self.dumps(self.adapted) qs = QuotedString(s) if self._conn is not None: qs.prepare(self._conn) return qs.getquoted()
def getquoted(self): s = self.dumps(self.adapted) return QuotedString(s).getquoted()
def getquoted(self): pudb.set_trace() s = self.dumps(self.adapted) return QuotedString(s).getquoted()