JuliaDatabases / PostgreSQL.jl

DEPRECATED: use LibPQ.jl instead
https://github.com/invenia/LibPQ.jl
Other
60 stars 39 forks source link

Depreciation warnings with Julia 0.5 #50

Open s-celles opened 7 years ago

s-celles commented 7 years ago

With Julia 0.5

julia> using PostgreSQL

shows a lot of depreciation warnings

WARNING: `@osx_only` is deprecated, use `@static if is_apple()` instead
WARNING: symbol is deprecated, use Symbol instead.
WARNING: Method definition scanf(Any) in module libpq_interface at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/libpq_common.jl:4 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/libpq_common.jl:4.
WARNING: Method definition sscanf(Any, Any) in module libpq_interface at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/libpq_common.jl:4 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/libpq_common.jl:4.
WARNING: Base.ASCIIString is deprecated, use String instead.
  likely near /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:36
WARNING: Base.UTF8String is deprecated, use String instead.
  likely near /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:36
WARNING: Base.ByteString is deprecated, use String instead.
  likely near /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:154
WARNING: Method definition convert(Type{PostgreSQL.PostgresType}, Type{String}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21.
WARNING: Method definition convert(Type{PostgreSQL.PostgresType}, Type{Base.Dict{AbstractString, Any}}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21.
WARNING: Method definition convert(Type{PostgreSQL.PostgresType}, Type{Array{String, 1}}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21.
WARNING: Method definition convert(Type{PostgreSQL.PostgresType}, Type{Array{String, 1}}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21.
WARNING: Method definition convert(Type{PostgreSQL.PostgresType}, Type{Array{String, 1}}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:21.
WARNING: Method definition pgdata(Type{PostgreSQL.PostgresType{:_varchar}}, Ptr{UInt8}, Array{String, 1}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:216 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:220.
WARNING: Method definition pgdata(Type{PostgreSQL.PostgresType{:_text}}, Ptr{UInt8}, Array{String, 1}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:224 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/types.jl:228.
WARNING: Method definition connect(Type{PostgreSQL.Postgres}) in module PostgreSQL at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/dbi_impl.jl:9 overwritten at /Applications/JuliaPro-0.5.1.1.app/Contents/Resources/pkgs-0.5.1.1/v0.5/PostgreSQL/src/dbi_impl.jl:36.

Related issue: https://github.com/JuliaDB/DBI.jl/issues/14