Skip to content
This repository was archived by the owner on Jun 18, 2020. It is now read-only.
This repository was archived by the owner on Jun 18, 2020. It is now read-only.

Support for output parameters in stored procedured #73

@HeikoR

Description

@HeikoR

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

or any other syntax suggestions here ...

Let me know If I can help in any way.

Regards, Heiko

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions