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
I understand that currently this library supports binding parameters but expects it be in the right order.
select a,b from table1 where a=? and b=? and the binding parameters should be an array in the right order like ["abc", 2]
Is there a way we can support or have support to give the binding parameters as below (This is supported in mssql library).
select a,b from table1 where a=@v1 and b=@v2
request.add(paramname, paramvalue, paramtype)
In the above example it would translate to
request.add("v1", "abc", sql.Varchar)
request.add("v2", 2, sql.Int)
Thanks
Ranjith
The text was updated successfully, but these errors were encountered:
I don't think this is possible. See the below quote from MSDN (emphasis mine):
Certain DBMSs allow an application to specify the parameters to a stored procedure by name instead of by position in the procedure call. Such parameters are called named parameters. ODBC supports the use of named parameters. In ODBC, named parameters are used only in calls to stored procedures and cannot be used in other SQL statements.
Hi
I understand that currently this library supports binding parameters but expects it be in the right order.
select a,b from table1 where a=? and b=? and the binding parameters should be an array in the right order like ["abc", 2]
Is there a way we can support or have support to give the binding parameters as below (This is supported in mssql library).
select a,b from table1 where a=@v1 and b=@v2
request.add(paramname, paramvalue, paramtype)
In the above example it would translate to
request.add("v1", "abc", sql.Varchar)
request.add("v2", 2, sql.Int)
Thanks
Ranjith
The text was updated successfully, but these errors were encountered: