JuliaDatabases / PostgreSQL.jl

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

Fix Base.None depreciations to Union{} for Julia v0.4 #26

Closed Paul-James closed 9 years ago

Paul-James commented 9 years ago

This is a quick fix to bring the PostgreSQL package up to date with Julia v0.4. Using None was depreciated in favor of Union{} (an empty set).

This simple fix prevents a couple depreciation warnings:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0 (2015-10-08 06:20 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0

julia> using PostgreSQL
WARNING: Base.None is deprecated, use Union{} instead.
  likely near /Users/pjames/.julia/v0.4/PostgreSQL/src/libpq_common.jl:53
WARNING: Base.None is deprecated, use Union{} instead.
  likely near /Users/pjames/.julia/v0.4/PostgreSQL/src/libpq_common.jl:53
julia> 
iamed2 commented 9 years ago

Don't know how I missed this. Thanks!