The function behaves as expected when in plain SQL, only plpgsql function has the above mentioned problem.
regards mk -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql