Michael Ainsworth <michael.ainsworth@abri.une.edu.au> writes:
> My question is: Can someone please enlighten me as to why the result of the last function call overwrites the results
tothe previous function calls?
Sounds to me like your function is using a static area for its result, or
something along that line.
regards, tom lane