changed to support the case when the SELECT statement has an INTO clause which writes to a container instead of a variable.