Closed JeremyMarshall closed 8 years ago
The contract for the "syslib.getquerybandvaluesp" function is two IN parameters and single OUT parameter. You are passing two INOUT parameters and a single OUT parameter.
For whatever reason ODBC is allowing this, and populating the result in the first INOUT/OUT parameter it finds.
If you change your params tuple to this, it will work as expected:
params = (0, 'Name', teradata.OutParam("o_value"))
Having a SP with in and out params results in the return values in the wrong place.
Passing the out params in first fixes it but it shouldn't really matter...
results in this The first one correct the second one not so correct but the second one is the parameters in the order for the SP
this is my config