Re: C Function Problem for bytea output - Mailing list pgsql-general

From Tom Lane
Subject Re: C Function Problem for bytea output
Date
Msg-id 21413.1135800127@sss.pgh.pa.us
Whole thread Raw
In response to C Function Problem for bytea output  (vishal saberwal <vishalsaberwal@gmail.com>)
Responses Re: C Function Problem for bytea output
List pgsql-general
vishal saberwal <vishalsaberwal@gmail.com> writes:
> I believe its something in the function but i can't spot the error.

Well, that sure looks like a NULL result; have you considered the
possibility that the fopen is failing?

BTW, that code will happily clobber memory that doesn't
belong to it if the passed FileLength is wrong.

            regards, tom lane

pgsql-general by date:

Previous
From: John McCawley
Date:
Subject: Queries never returning...
Next
From: Tom Lane
Date:
Subject: Re: Queries never returning...