mmottl / postgresql-ocaml

OCaml-bindings for the PostgreSQL database
Other
141 stars 23 forks source link

Binding for PQCancel_stub reverses the meaning of the return code? #40

Closed adept closed 4 years ago

adept commented 4 years ago

According to the postgres documentation and source code, the return code of PQCancel is 1 when dispatch is successful and 0 otherwise.

However, PQCancel_stub seem to interpret 0 as success and non-zero as failure, with is exactly the opposite.