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) {
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-
273269static 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+
497497static struct custom_operations result_ops = {
498498 "pg_ocaml_result" , free_result ,
499499 custom_compare_default , custom_hash_default ,
You can’t perform that action at this time.
0 commit comments