@@ -103,11 +103,10 @@ type ftype =
103
103
| ANYELEMENT
104
104
| JSONB
105
105
106
- external ftype_of_oid :
107
- (int (* oid *) [@ untagged]) -> ftype
106
+ external ftype_of_oid : (oid [@ untagged]) -> ftype
108
107
= " ftype_of_oid_stub_bc" " ftype_of_oid_stub"
109
108
110
- external oid_of_ftype : ftype -> (int (* oid *) [@ untagged])
109
+ external oid_of_ftype : ftype -> (oid [@ untagged])
111
110
= " oid_of_ftype_stub_bc" " oid_of_ftype_stub" [@@ noalloc]
112
111
113
112
let string_of_ftype = function
@@ -405,12 +404,10 @@ module Stub = struct
405
404
external fformat : result -> (int [@ untagged]) -> FFormat .t
406
405
= " PQfformat_stub_bc" " PQfformat_stub" [@@ noalloc]
407
406
408
- external ftype :
409
- result -> (int [@ untagged]) -> (int (* oid *) [@ untagged])
407
+ external ftype : result -> (int [@ untagged]) -> (oid [@ untagged])
410
408
= " PQftype_stub_bc" " PQftype_stub" [@@ noalloc]
411
409
412
- external paramtype :
413
- result -> (int [@ untagged]) -> (int (* oid *) [@ untagged])
410
+ external paramtype : result -> (int [@ untagged]) -> (oid [@ untagged])
414
411
= " PQparamtype_stub_bc" " PQparamtype_stub"
415
412
416
413
external fmod : result -> (int [@ untagged]) -> (int [@ untagged])
@@ -438,7 +435,7 @@ module Stub = struct
438
435
external cmd_status : result -> string = " PQcmdStatus_stub"
439
436
external cmd_tuples : result -> string = " PQcmdTuples_stub"
440
437
441
- external oid_value : result -> (int (* oid *) [@ untagged])
438
+ external oid_value : result -> (oid [@ untagged])
442
439
= " PQoidValue_stub_bc" " PQoidValue_stub" [@@ noalloc]
443
440
444
441
@@ -542,57 +539,55 @@ module Stub = struct
542
539
543
540
(* Large objects *)
544
541
545
- external lo_creat : connection -> (int (* oid *) [@ untagged])
542
+ external lo_creat : connection -> (oid [@ untagged])
546
543
= " lo_creat_stub_bc" " lo_creat_stub"
547
544
548
- external lo_import : connection -> string -> (int (* oid *) [@ untagged])
545
+ external lo_import : connection -> string -> (oid [@ untagged])
549
546
= " lo_import_stub_bc" " lo_import_stub"
550
547
551
548
external lo_export :
552
- connection -> (int (* oid *) [@ untagged]) -> string -> (int [@ untagged])
549
+ connection -> (oid [@ untagged]) -> string -> (int [@ untagged])
553
550
= " lo_export_stub_bc" " lo_export_stub"
554
551
555
552
external lo_open :
556
- connection -> (int (* oid *) [@ untagged]) ->
557
- (int (* large_object *) [@ untagged])
553
+ connection -> (oid [@ untagged]) -> (large_object [@ untagged])
558
554
= " lo_open_stub_bc" " lo_open_stub"
559
555
560
556
external lo_close :
561
- connection -> (int (* large_object *) [@ untagged]) -> (int [@ untagged])
557
+ connection -> (large_object [@ untagged]) -> (int [@ untagged])
562
558
= " lo_close_stub_bc" " lo_close_stub"
563
559
564
560
external lo_tell :
565
- connection -> (int (* large_object *) [@ untagged]) -> (int [@ untagged])
561
+ connection -> (large_object [@ untagged]) -> (int [@ untagged])
566
562
= " lo_tell_stub_bc" " lo_tell_stub"
567
563
568
- external lo_unlink :
569
- connection -> (int (* oid *) [@ untagged]) -> (int (* oid *) [@ untagged])
564
+ external lo_unlink : connection -> (oid [@ untagged]) -> (oid [@ untagged])
570
565
= " lo_unlink_stub_bc" " lo_unlink_stub"
571
566
572
567
external lo_read :
573
- connection -> (int (* large_object *) [@ untagged]) ->
568
+ connection -> (large_object [@ untagged]) ->
574
569
Bytes .t -> (int [@ untagged]) -> (int [@ untagged]) -> (int [@ untagged])
575
570
= " lo_read_stub_bc" " lo_read_stub"
576
571
577
572
external lo_read_ba :
578
- connection -> (int (* large_object *) [@ untagged]) ->
573
+ connection -> (large_object [@ untagged]) ->
579
574
(char , Bigarray .int8_unsigned_elt , Bigarray .c_layout ) Bigarray.Array1 .t ->
580
575
(int [@ untagged]) -> (int [@ untagged]) -> (int [@ untagged])
581
576
= " lo_read_ba_stub_bc" " lo_read_ba_stub"
582
577
583
578
external lo_write :
584
- connection -> (int (* large_object *) [@ untagged]) ->
579
+ connection -> (large_object [@ untagged]) ->
585
580
string -> (int [@ untagged]) -> (int [@ untagged]) -> (int [@ untagged])
586
581
= " lo_write_stub_bc" " lo_write_stub"
587
582
588
583
external lo_write_ba :
589
- connection -> (int (* large_object *) [@ untagged]) ->
584
+ connection -> (large_object [@ untagged]) ->
590
585
(char , Bigarray .int8_unsigned_elt , Bigarray .c_layout ) Bigarray.Array1 .t ->
591
586
(int [@ untagged]) -> (int [@ untagged]) -> (int [@ untagged])
592
587
= " lo_write_ba_stub_bc" " lo_write_ba_stub"
593
588
594
589
external lo_seek :
595
- connection -> (int (* large_object *) [@ untagged]) ->
590
+ connection -> (large_object [@ untagged]) ->
596
591
(int [@ untagged]) -> seek_cmd -> (int [@ untagged])
597
592
= " lo_lseek_stub_bc" " lo_lseek_stub"
598
593
end
0 commit comments