We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee5574 commit 868e675Copy full SHA for 868e675
src/connections.jl
@@ -744,7 +744,7 @@ function conninfo(str::AbstractString)
744
if err_ref[] != C_NULL
745
err_msg = unsafe_string(err_ref[])
746
libpq_c.PQfreemem(err_ref[])
747
- error(LOGGER, ConninfoParseError(err_msg))
+ error(LOGGER, Errors.ConninfoParseError(err_msg))
748
end
749
750
ci_array = conninfo(ci_ptr)
test/runtests.jl
@@ -443,6 +443,9 @@ end
443
results = columntable(execute(conn, "SELECT '1 12:59:10'::interval;"))
444
@test results[1][1] == "@ 1 day 12 hours 59 mins 10 secs"
445
close(conn)
446
+
447
+ # ERROR: missing "=" after "barf" in connection info string
448
+ @test_throws LibPQ.Errors.ConninfoParseError LibPQ.conninfo("wrong")
449
450
451
@testset "Time Zone" begin
0 commit comments