Search Postgresql Archives

Re: PG_DIAG_STATEMENT_POSITION Where is it defined?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux