def op(): if parameters: self._last_operation_string = _bind_parameters(operation, parameters) else: self._last_operation_string = operation self._last_operation_handle = rpc.execute_statement( self.service, self.session_handle, self._last_operation_string)
def op(): if parameters: self._last_operation_string = _bind_parameters(operation, parameters) else: self._last_operation_string = operation self._last_operation_handle = rpc.execute_statement(self.service, rpc.create_beeswax_query(self._last_operation_string, self.user, configuration))
def dt(self, expected, query, params): result = _bind_parameters(query, params) self.assertEquals(expected, result)