Skip to content

Call module specific function not working? #3785

Closed
@quinnj

Description

@quinnj

I recently updated my Julia build, 614b2eff2, and noticed there were some additional methods added to connect, particularly one that takes a single string as an argument. It's never been a conflict before, but the ODBC package also has a connect function that is defines with a single string argument for the DSN, and usr::String="", pwd::String="" as named arguments.

I noticed the conflict as I tried to run a script and the Base.connect was called as one would expect. I thought this would eventually happen, but I tried to explicitly call ODBC.connect and Base.connect was still called. Is this expected? I thought fully referencing a module before a function made sure the module function would be called.

julia> Base.connect("SHC")
ERROR: connect: socket operation on non-socket (ENOTSOCK)
 in yield at multi.jl:1415

julia> ODBC.connect("SHC")
ERROR: connect: socket operation on non-socket (ENOTSOCK)
 in yield at multi.jl:1415

julia> @which ODBC.connect("SHC")
connect(path::Union(ASCIIString,UTF8String)) at stream.jl:817

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions