File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,6 @@ static inline void np_decr_refcount(np_callback *c) {
266
266
#define get_cancel_obj (v ) ((PGcancel *)Field(v, 2))
267
267
#define set_cancel_obj (v , cancel ) (Field(v, 2) = (value)cancel)
268
268
269
- CAMLprim value PQconn_isnull (value v_conn ) {
270
- return Val_bool ((get_conn (v_conn )) ? 0 : 1 );
271
- }
272
-
273
269
static inline void free_conn (value v_conn ) {
274
270
PGconn * conn = get_conn (v_conn );
275
271
if (conn ) {
@@ -494,6 +490,10 @@ static inline void free_result(value v_res) {
494
490
}
495
491
}
496
492
493
+ CAMLprim value PQres_isnull (value v_res ) {
494
+ return Val_bool (get_res (v_res ) ? 0 : 1 );
495
+ }
496
+
497
497
static struct custom_operations result_ops = {
498
498
"pg_ocaml_result" , free_result ,
499
499
custom_compare_default , custom_hash_default ,
You can’t perform that action at this time.
0 commit comments