Functions can be declared to return an aggregate by using the TYPE attribute in the RETURNS option only if the referenced
                  type definition contains only constant extents.
               	
            
            	
            	
            
               		
               			
               - Resolution:
 
               			
               - Ensure the referenced type definition contains only constant extents.