From 4b86aba03e59c7178c822fa2e4741683774b6736 Mon Sep 17 00:00:00 2001 From: Farreeda Date: Thu, 10 Aug 2023 21:00:35 +0300 Subject: [PATCH] . --- src/postgresql.jl | 2 +- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postgresql.jl b/src/postgresql.jl index 1f6ff0b..7e0a02c 100644 --- a/src/postgresql.jl +++ b/src/postgresql.jl @@ -22,7 +22,7 @@ function _dbconnect(conn_obj::Type{LibPQ.Connection}, conn_string :: String) end -function _dbconnect(conn_obj::Type{LibPQ.Connection}, host::String, user::String, password::String; db::String="", port::Integer=3306, unix_socket::Union{Nothing,String}=nothing, client_flag=API.CLIENT_MULTI_STATEMENTS, opts = Dict()) +function _dbconnect(conn_obj::Type{LibPQ.Connection}, host::String, user::String, password::String, db::String; port::Integer=3306, unix_socket::Union{Nothing,String}=nothing, client_flag=API.CLIENT_MULTI_STATEMENTS, opts = Dict()) if unix_socket == nothing unix_socket = API.MYSQL_DEFAULT_SOCKET diff --git a/test/runtests.jl b/test/runtests.jl index cbac0f7..2d3ef32 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -19,7 +19,7 @@ end @testset "_dbconnect function for LibPQ" begin - conn= DBConnector._dbconnect(LibPQ.Connection, ENV["POSTGRES_HOST"],ENV["POSTGRES_USER"], password = ENV["POSTGRES_PASSWORD"], db = "mimic") + conn= DBConnector._dbconnect(LibPQ.Connection, ENV["POSTGRES_HOST"],ENV["POSTGRES_USER"], ENV["POSTGRES_PASSWORD"], "mimic") @test @isdefined conn end