Logo Search packages:      
Sourcecode: zope-mysqlda version File versions  Download package

def ZMySQLDA::DA::Connection::sql_quote__ (   self,
  v,
  escapes = {} 
)

Base API. Used to message strings for use in queries.

Definition at line 176 of file DA.py.

00176                                      {}):
        """ Base API. Used to message strings for use in queries.
        """
        try:
            connection = self._v_database_connection
        except AttributeError:
            self.connect(self.connection_string)
            connection = self._v_database_connection
        if self.use_unicode and isinstance(v, unicode):
            return connection.unicode_literal(v)
        else:
            return connection.string_literal(v)


Generated by  Doxygen 1.6.0   Back to index