File tree 3 files changed +4
-4
lines changed
caqti-driver-postgresql/lib
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ let encode_field
95
95
| Enum _ -> Pgx.Value. of_string x
96
96
| Octets -> Pgx.Value. of_binary x
97
97
| Pdate -> Pgx.Value. of_string (Conv. iso8601_of_pdate x)
98
- | Ptime -> Pgx.Value. of_string (pgstring_of_pdate x)
98
+ | Ptime -> Pgx.Value. of_string (pgstring_of_ptime x)
99
99
| Ptime_span -> Pgx.Value. of_string (pgstring_of_ptime_span x))
100
100
101
101
let encode_param ~uri t param =
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ module Make_encoder (String_encoder : STRING_ENCODER) = struct
239
239
| Enum _ -> encode_string x
240
240
| Octets -> encode_octets x
241
241
| Pdate -> Conv. iso8601_of_pdate x
242
- | Ptime -> Pg_ext. pgstring_of_pdate x
242
+ | Ptime -> Pg_ext. pgstring_of_ptime x
243
243
| Ptime_span -> Pg_ext. pgstring_of_ptime_span x)
244
244
245
245
let encode ~uri params t x =
Original file line number Diff line number Diff line change 1
- (* Copyright (C) 2022 Petter A. Urkedal <paurkedal@gmail.com>
1
+ (* Copyright (C) 2022--2023 Petter A. Urkedal <paurkedal@gmail.com>
2
2
*
3
3
* This library is free software; you can redistribute it and/or modify it
4
4
* under the terms of the GNU Lesser General Public License as published by
@@ -27,7 +27,7 @@ let pgstring_of_bool = function true -> "t" | false -> "f"
27
27
28
28
let pdate_of_pgstring = Conv. pdate_of_iso8601
29
29
30
- let pgstring_of_pdate x =
30
+ let pgstring_of_ptime x =
31
31
Ptime. to_rfc3339 ~space: true ~tz_offset_s: 0 ~frac_s: 6 x
32
32
33
33
let pgstring_of_ptime_span t =
You can’t perform that action at this time.
0 commit comments