LibPQ.jl icon indicating copy to clipboard operation
LibPQ.jl copied to clipboard

PQTypeMap should support `get`

Open samuel-massinon opened this issue 5 years ago • 0 comments

julia> get(LibPQ._DEFAULT_TYPE_MAP.type_map, 21, "temp")
Int16

julia> get(LibPQ._DEFAULT_TYPE_MAP, 21, "temp")
ERROR: MethodError: no method matching get(::LibPQ.PQTypeMap, ::Int64, ::String)
Closest candidates are:
  get(::REPL.Terminals.TTYTerminal, ::Any, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/Terminals.jl:176
  get(::XMLDict.XMLDictElement, ::Any, ::Any) at /home/sam/.julia/packages/XMLDict/wy8cO/src/XMLDict.jl:35
  get(::AbstractArray, ::Integer, ::Any) at abstractarray.jl:1221
  ...
Stacktrace:
 [1] top-level scope at REPL[99]:1

samuel-massinon avatar Apr 14 '20 19:04 samuel-massinon