Skip to content

Commit

Permalink
fix: formatting (JuliaDatabases#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Oskin committed Mar 14, 2023
1 parent 02a5f5c commit 212200b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ Base.convert(::Type{String}, pqv::PQValue) = String(pqv)
Base.length(pqv::PQValue) = length(string_view(pqv))
Base.lastindex(pqv::PQValue) = lastindex(string_view(pqv))


# Julia bug override, see https://github.com/iamed2/LibPQ.jl/issues/265
# and https://github.com/iamed2/LibPQ.jl/pull/248 for more details
function _tryparse(::Type{T}, str, timeformat) where T
function _tryparse(::Type{T}, str, timeformat) where {T}
@static if v"1.6.6" <= VERSION < v"1.7.0" || VERSION > v"1.7.2"
return tryparse(T, str, timeformat)
else
Expand All @@ -129,7 +128,7 @@ function _tryparse(::Type{T}, str, timeformat) where T
end
end

function _tryparse(::Type{T}, str) where T
function _tryparse(::Type{T}, str) where {T}
@static if v"1.6.6" <= VERSION < v"1.7.0" || VERSION > v"1.7.2"
return tryparse(T, str)
else
Expand Down

0 comments on commit 212200b

Please sign in to comment.