Skip to content

Commit

Permalink
Consume input from PostgreSQL also in validate.
Browse files Browse the repository at this point in the history
Cf. bb95d95.
  • Loading branch information
paurkedal committed Sep 21, 2022
1 parent 867049e commit 35c558a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caqti-driver-postgresql/lib/caqti_driver_postgresql.ml
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ module Connect_functor (System : Caqti_driver_sig.System_unix) = struct
Caqti_error.pp_uri uri (Pg.string_of_error err))

let validate () = using_db @@ fun () ->
db#consume_input;
if (try db#status = Pg.Ok with Pg.Error _ -> false) then
return true
else
Expand Down

0 comments on commit 35c558a

Please sign in to comment.