Skip to content

Commit

Permalink
Merge pull request #67 from mefyl/master
Browse files Browse the repository at this point in the history
Fix postgresql backend option detection.
  • Loading branch information
paurkedal authored Apr 18, 2021
2 parents bccdbe3 + cbf41af commit 74317cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-driver/caqti_driver_postgresql.ml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ let rec decode_row'
| Caqti_type.Option t -> fun j ->
let j' = j + Caqti_type.length t in
let rec null_only k = k = j' ||
(resp#getisnull i j && null_only (k + 1)) in
(resp#getisnull i k && null_only (k + 1)) in
if null_only j then Ok (j', None) else
(match decode_row' ~uri row t j with
| Ok (j'', y) -> assert (j' = j''); Ok (j'', Some y)
Expand Down

0 comments on commit 74317cd

Please sign in to comment.