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


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to