Commit e94033c 1 parent 7b13b3e commit e94033c Copy full SHA for e94033c
File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
name = " LibPQ"
2
2
uuid = " 194296ae-ab2e-5f79-8cd4-7183a0a5a0d1"
3
3
license = " MIT"
4
- version = " 1.12 .0"
4
+ version = " 1.13 .0"
5
5
6
6
[deps ]
7
7
CEnum = " fa961155-64e5-5f13-b03f-caf6b980ea82"
Original file line number Diff line number Diff line change @@ -295,15 +295,20 @@ end
295
295
296
296
_DEFAULT_TYPE_MAP[:time ] = Time
297
297
function pqparse (:: Type{Time} , str:: AbstractString )
298
- try
299
- return parse (Time, str)
300
- catch err
301
- if ! (err isa InexactError)
302
- rethrow (err)
298
+ @static if v " 1.6.6" <= VERSION < v " 1.7.0" || VERSION > v " 1.7.2"
299
+ result = tryparse (Time, str)
300
+ # If there's an error we want to see it here
301
+ return isnothing (result) ? parse (Time, _trunc_seconds (str)) : result
302
+ else
303
+ try
304
+ return parse (Time, str)
305
+ catch err
306
+ if ! (err isa InexactError)
307
+ rethrow (err)
308
+ end
303
309
end
310
+ return parse (Time, _trunc_seconds (str))
304
311
end
305
-
306
- return parse (Time, _trunc_seconds (str))
307
312
end
308
313
309
314
# InfExtendedTime support for Dates.TimeType
You can’t perform that action at this time.
0 commit comments