You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2020. It is now read-only.
Suggest (+1) support for output parameters on stored procedures.
For example if I have
EXEC @return_value = [user_get_data]
@user_id = @user_id OUTPUT,
@user_type = @user_type OUTPUT,
@login_name = N'heiko'
where @user_id, and @user_type are int's and @login_name is a varchar
And node syntax could look something like the following:
conn.query( 'user_get_data', ? , ?, ?, paramArray, function ( err, result ) { ...
where
paramArray[0] would be first output param,
paramArray[1] would be second output param,
paramArray[2] would be input param
or
conn.query( 'user_get_data', 'userID', 'userType', 'loginName', paramObj, function ( err, result ) { ...
where initially
paramObj['loginName'] = 'heiko'
paramObj['userType'] = undefined
paramObj['userID'] = undefined
and after successfull execution
paramObj['loginName'] = 'heiko'
paramObj['userType'] = 23424
paramObj['userID'] = 1