diff --git a/docs/spec/spec.md b/docs/spec/spec.md index d68946f1..7d0e3e11 100644 --- a/docs/spec/spec.md +++ b/docs/spec/spec.md @@ -258,6 +258,8 @@ In addition to the above parameters, it has `CursorOutParameter` to retrieve the stream resultStream = cursor.get(); ``` +> **_Note:_** In the case of a stored procedure query that returns a result set along with the mentioned parameters, the `get()` method of these parameters should only be invoked after consuming the result set. Otherwise, consuming the result set fails with a 'Error when iterating the SQL result. The result set is closed.' error. + ## 3.3. Query concatenation `sql:ParameterizedQuery` can be concatenated using util methods such as `sql:queryConcat()` and