Subject Re: GDS Exception
Author Roman Rokytskyy
> Any tip about this exception?
> GDS Exception. 335544652. multiple rows in singleton select

Select in your procedure returned more than one row. If this is
intended behavior, then you have to change the body like this:

FOR SELECT .... FROM
INTO ....
DO SUSPEND;

See PSQL language reference for more details.

Roman