execute(request, parameters) {
    const executeParameters = [];
    executeParameters.push({
      type: _dataType.TYPES.Int,
      name: 'handle',
      // TODO: Abort if `request.handle` is not set
      value: request.handle,
      output: true,
      length: undefined,
      precision: undefined,
      scale: undefined
    });

    try {
      for (let i = 0, len = request.parameters.length; i < len; i++) {
        const parameter = request.parameters[i];
        executeParameters.push({ ...parameter,
          value: parameter.type.validate(parameters ? parameters[parameter.name] : null)
        });
      }
    } catch (error) {
      request.error = error;
      process.nextTick(() => {
        this.debug.log(error.message);
        request.callback(error);
      });
      return;
    }

    this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default('sp_execute', executeParameters, this.currentTransactionDescriptor(), this.config.options));
  }
/**
   * Execute previously prepared SQL, using the supplied parameters.
   *
   * @param request A previously prepared [[Request]].
   * @param parameters  An object whose names correspond to the names of
   *   parameters that were added to the [[Request]] before it was prepared.
   *   The object's values are passed as the parameters' values when the
   *   request is executed.
   */
Execute previously prepared SQL, using the supplied parameters.
@param request A previously prepared [[Request]].
@param parameters  An object whose names correspond to the names of
parameters that were added to the [[Request]] before it was prepared.
The object's values are passed as the parameters' values when the
request is executed.
Execute previously prepared SQL using the supplied parameters . @param request A previously prepared [[ Request ]] . @param parameters An object whose names correspond to the names of parameters that were added to the [[ Request ]] before it was prepared . The object ' s values are passed as the parameters ' values when the request is executed .
execute(request, parameters) {
    const executeParameters = [];
    executeParameters.push({
      type: _dataType.TYPES.Int,
      name: 'handle',
      value: request.handle,
      output: true,
      length: undefined,
      precision: undefined,
      scale: undefined
    });
    try {
      for (let i = 0, len = request.parameters.length; i < len; i++) {
        const parameter = request.parameters[i];
        executeParameters.push({ ...parameter,
          value: parameter.type.validate(parameters ? parameters[parameter.name] : null)
        });
      }
    } catch (error) {
      request.error = error;
      process.nextTick(() => {
        this.debug.log(error.message);
        request.callback(error);
      });
      return;
    }
    this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default('sp_execute', executeParameters, this.currentTransactionDescriptor(), this.config.options));
  }
execute ( request , parameters ) { const executeParameters = [ ] ; executeParameters . push ( { type : _dataType . TYPES . Int , name : 'handle' , value : request . handle , output : true , length : undefined , precision : undefined , scale : undefined } ) ; try { for ( let i = 0 , len = request . parameters . length ; i < len ; i ++ ) { const parameter = request . parameters [ i ] ; executeParameters . push ( { ... parameter , value : parameter . type . validate ( parameters ? parameters [ parameter . name ] : null ) } ) ; } } catch ( error ) { request . error = error ; process . nextTick ( ( ) => { this . debug . log ( error . message ) ; request . callback ( error ) ; } ) ; return ; } this . makeRequest ( request , _packet . TYPE . RPC_REQUEST , new _rpcrequestPayload . default ( 'sp_execute' , executeParameters , this . currentTransactionDescriptor ( ) , this . config . options ) ) ; }
Execute previously prepared SQL, using the supplied parameters.
Execute previously prepared SQL using the supplied parameters .
// TODO: Abort if `request.handle` is not set