Skip to content

Commit 06f1a2c

Browse files
committed
make lint happy
1 parent 1e64e8b commit 06f1a2c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

lib/postgresql.ml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,12 @@ module Stub = struct
491491
[@@noalloc]
492492

493493
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"
497500

498501
external send_describe_prepared : connection -> string -> (int[@untagged])
499502
= "PQsendDescribePrepared_stub_bc" "PQsendDescribePrepared_stub"
@@ -1008,7 +1011,7 @@ class connection ?host ?hostaddr ?port ?dbname ?user ?password ?options ?tty
10081011
if Stub.result_isnull r then signal_error conn else r))
10091012

10101013
method send_query ?(param_types = [||]) ?(params = [||])
1011-
?(binary_params = [||]) ?(binary_result=false) query =
1014+
?(binary_params = [||]) ?(binary_result = false) query =
10121015
wrap_conn (fun conn ->
10131016
if
10141017
Stub.send_query_params conn query param_types params
@@ -1022,11 +1025,12 @@ class connection ?host ?hostaddr ?port ?dbname ?user ?password ?options ?tty
10221025
signal_error conn)
10231026

10241027
method send_query_prepared ?(params = [||]) ?(binary_params = [||])
1025-
?(binary_result=false)
1026-
stm_name =
1028+
?(binary_result = false) stm_name =
10271029
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
10301034
then signal_error conn)
10311035

10321036
method send_describe_prepared stm_name =

0 commit comments

Comments
 (0)