Tony Caduto wrote:
> Martijn van Oosterhout wrote:
>> src/include/postgres_ext.h
>>
>>
> I did use grep but I am confused by what it showed,
>
> according to the docs:
> http://www.postgresql.org/docs/8.1/static/libpq-exec.html
> it should be a integer not 'P'
>
> Those symbols are used by PQresultErrorField which expects a integer
> value.
>
> Thanks,
>
I got it working, in Pascal you have to pass P as ord('P')
PQresultErrorField(fstatement,ord('P'));
It's one of those cryptic ways you can use a char as a integer in C :-)
--
Tony