From 0427a2c965ccab6e20ca78adacb2a5e93f52eb92 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Wed, 17 Jan 2024 15:13:38 -0700 Subject: [PATCH] Fixes --- src/dbinterface.jl | 1 + test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbinterface.jl b/src/dbinterface.jl index d1e16501..aab00e39 100644 --- a/src/dbinterface.jl +++ b/src/dbinterface.jl @@ -6,5 +6,6 @@ DBInterface.connect(::Type{Connection}, args...; kws...) = DBConnection(Connecti DBInterface.prepare(conn::DBConnection, args...; kws...) = prepare(conn.conn, args...; kws...) DBInterface.execute(conn::DBConnection, args...; kws...) = execute(conn.conn, args...; kws...) DBInterface.execute(conn::DBConnection, str::AbstractString; kws...) = execute(conn.conn, str; kws...) +DBInterface.execute(conn::DBConnection, str::AbstractString, params; kws...) = execute(conn.conn, str, params; kws...) DBInterface.execute(stmt::Statement, args...; kws...) = execute(stmt, args...; kws...) DBInterface.close!(conn::DBConnection) = close(conn) diff --git a/test/runtests.jl b/test/runtests.jl index a3fafa16..5af14722 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1912,7 +1912,7 @@ end @testset "DBInterface integration" begin conn = DBInterface.connect(LibPQ.Connection, "dbname=postgres user=$DATABASE_USER") - @test conn isa LibPQ.Connection + @test conn isa LibPQ.DBConnection result = DBInterface.execute( conn,