File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11name = " LibPQ"
22uuid = " 194296ae-ab2e-5f79-8cd4-7183a0a5a0d1"
33license = " MIT"
4- version = " 1.12 .0"
4+ version = " 1.13 .0"
55
66[deps ]
77CEnum = " fa961155-64e5-5f13-b03f-caf6b980ea82"
Original file line number Diff line number Diff line change @@ -295,15 +295,20 @@ end
295295
296296_DEFAULT_TYPE_MAP[:time ] = Time
297297function 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
303309 end
310+ return parse (Time, _trunc_seconds (str))
304311 end
305-
306- return parse (Time, _trunc_seconds (str))
307312end
308313
309314# InfExtendedTime support for Dates.TimeType
You can’t perform that action at this time.
0 commit comments