File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -491,9 +491,12 @@ module Stub = struct
491
491
[@@ noalloc]
492
492
493
493
external send_query_prepared :
494
- connection -> string -> string array -> bool array -> bool ->
495
- (int [@ untagged])
496
- = " PQsendQueryPrepared_stub_bc" " PQsendQueryPrepared_stub"
494
+ connection ->
495
+ string ->
496
+ string array ->
497
+ bool array ->
498
+ bool ->
499
+ (int [@ untagged]) = " PQsendQueryPrepared_stub_bc" " PQsendQueryPrepared_stub"
497
500
498
501
external send_describe_prepared : connection -> string -> (int [@ untagged])
499
502
= " PQsendDescribePrepared_stub_bc" " PQsendDescribePrepared_stub"
@@ -1008,7 +1011,7 @@ class connection ?host ?hostaddr ?port ?dbname ?user ?password ?options ?tty
1008
1011
if Stub. result_isnull r then signal_error conn else r))
1009
1012
1010
1013
method send_query ?(param_types = [||]) ?(params = [||])
1011
- ?(binary_params = [||]) ?(binary_result= false ) query =
1014
+ ?(binary_params = [||]) ?(binary_result = false ) query =
1012
1015
wrap_conn (fun conn ->
1013
1016
if
1014
1017
Stub. send_query_params conn query param_types params
@@ -1022,11 +1025,12 @@ class connection ?host ?hostaddr ?port ?dbname ?user ?password ?options ?tty
1022
1025
signal_error conn)
1023
1026
1024
1027
method send_query_prepared ?(params = [||]) ?(binary_params = [||])
1025
- ?(binary_result= false )
1026
- stm_name =
1028
+ ?(binary_result = false ) stm_name =
1027
1029
wrap_conn (fun conn ->
1028
- if Stub. send_query_prepared conn stm_name params
1029
- binary_params binary_result <> 1
1030
+ if
1031
+ Stub. send_query_prepared conn stm_name params binary_params
1032
+ binary_result
1033
+ <> 1
1030
1034
then signal_error conn)
1031
1035
1032
1036
method send_describe_prepared stm_name =
You can’t perform that action at this time.
0 commit comments