Uros <uros(at)sir-mag(dot)com> writes:> I have problem with my function and I can find what's wrong.
Don't use plpgsql variable names that conflict with field names of thetables you are trying to access in the function.
regards, tom lane