def setJDBCObject(self, statement, index, object, dbtype=None): if type(object) is ReturningParam: statement.registerReturnParameter(index, object.type) elif dbtype is None: OracleDataHandler.setJDBCObject(self, statement, index, object) else: OracleDataHandler.setJDBCObject(self, statement, index, object, dbtype)