subhash(at)nmsu(dot)edu writes:
> The real problem starts here: when i use the function as
> select rational_out(rational_type) from testtable;
> it works fine and returns a cstring. But when i execute
> select rational_type from testtable;
> then it dies with the error i mentioned before. Why is it happeneing?
Because your code is broken ;-). But when you haven't shown us any
of the code, it's impossible to guess how.
regards, tom lane