Skip to content

Commit f93070a

Browse files
committed
removed the wrong stub!
1 parent d0f2b70 commit f93070a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/postgresql_stubs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,6 @@ static inline void np_decr_refcount(np_callback *c) {
266266
#define get_cancel_obj(v) ((PGcancel *)Field(v, 2))
267267
#define set_cancel_obj(v, cancel) (Field(v, 2) = (value)cancel)
268268

269-
CAMLprim value PQconn_isnull(value v_conn) {
270-
return Val_bool((get_conn(v_conn)) ? 0 : 1);
271-
}
272-
273269
static inline void free_conn(value v_conn) {
274270
PGconn *conn = get_conn(v_conn);
275271
if (conn) {
@@ -494,6 +490,10 @@ static inline void free_result(value v_res) {
494490
}
495491
}
496492

493+
CAMLprim value PQres_isnull(value v_res) {
494+
return Val_bool(get_res(v_res) ? 0 : 1);
495+
}
496+
497497
static struct custom_operations result_ops = {
498498
"pg_ocaml_result", free_result,
499499
custom_compare_default, custom_hash_default,

0 commit comments

Comments
 (0)