TypeDescriptor returnType = routineInfo.getReturnType();
if (returnType != null && !returnType.isRowMultiSet())
{
TypeId returnTypeId = TypeId.getBuiltInTypeId(returnType.getJDBCTypeId());
if (returnTypeId.variableLength()) {
// Cast the return using a cast node, but have to go
// into the SQL domain, and back to the Java domain.
DataTypeDescriptor returnValueDtd = new DataTypeDescriptor(
returnTypeId,