1

I have a Stored Procedure that returns a VARCHAR OUT and a Cursor. The rows is always null and I need the result set in it. How do I get it? I get the OUT value in iStatus as expected.

def rows = sql.call stmt, parameters, { it ->
   iStatus = it
}
Opal
  • 81,889
  • 28
  • 189
  • 210
Vinodh Thiagarajan
  • 758
  • 3
  • 9
  • 19

1 Answers1

1

You are probably looking for Sql#callWithRows() or Sql#callWithAllRows().

There are two variations for each of the methods. One with GString and the other with List of parameters.

It's quite new feature though so you may need to update Groovy version.

topr
  • 4,482
  • 3
  • 28
  • 35