OK, I got it now … basically the documentation is not clear enough.
Here is my setup:
//Note: I preferred to pass the whole sql with variable substitution for more control
For you, the string mapped to the sql field would be:
select sname from student where M%level% > %numb%"
My Dynamic configuration is as follows:
-
SQL: {sql}
//NOT THAT IT IS NOT "{sql}", so don’t use quotes nor ‘;’.
-
NO input JDBC Types:
//No need since you are taking care of it from flow
-
OUTPUT JDBC Types: (VARCHAR, java.lang.String, sname)
//I was missing this OUTPUT JDBC Types which was causing my error.
-
maximum row: 0
-
Result Field: // left this blank, since selects return -1 update count
-
Result Field Type: Integer/String does not apply when
Execute and your results should look as follows:
results
- results[0]
- results[1]
- results[2]
Try it this way and they you can try moving the SQL into the Adapter. I don’t believe the convertion is the problem, since I got the same error w/o parameters.
#Integration-Server-and-ESB#Adapters-and-E-Standards#webMethods