Esempio n. 1
0
    def executebinds(self, s = None, b = None, connection = None,
                     returnCursor = False):
        """
        _executebinds_

        Execute a SQL statement that has a single set of bind variables.
        Transform the bind variables into the format that MySQL expects.
        """
        s, b = self.substitute(s, b)
        return DBInterface.executebinds(self, s, b, connection, returnCursor)
Esempio n. 2
0
    def executemanybinds(self, s = None, b = None, connection = None,
                         returnCursor = False):
        """
        _executemanybinds_

        Execute a SQL statement that has multiple sets of bind variables.
        Transform the bind variables into the format that MySQL expects.        
        """
        newsql, binds = self.substitute(s, b)

        return DBInterface.executemanybinds(self, newsql, binds, connection,
                                            returnCursor)