Nested stored procedure with dynamic result set returns errors [CR 401334]

A data truncation error or conversion error occurs when a procedure calls another procedure with a dynamic result set and all of the following are true:

The problem doesn’t happen if DBSIQL Java connects through jConnect5 or the ODBC driver or if Sybase IQ 12.6 is used with DBISQL 9.0.1.

There are several ways to avoid the problem: