Skip to content

Commit c2ff301

Browse files
authored
Support DBInterface v2.5 (#187)
* Support DBInterface v2.5 * uncomment tests
1 parent b39aa34 commit c2ff301

File tree

3 files changed

+3
-71
lines changed

3 files changed

+3
-71
lines changed

.travis.yml

-70
This file was deleted.

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1616
[compat]
1717
julia = "1"
1818
BinaryProvider = "0.5"
19-
DBInterface = "2"
19+
DBInterface = "2.5"
2020
Tables = "1"
2121
DecFP = "0.4.9, 0.4.10, 1"
2222
MariaDB_Connector_C_jll = "3"

src/prepare.jl

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ end
2222
@noinline checkstmt(stmt::Statement) = checkstmt(stmt.stmt)
2323
@noinline checkstmt(stmt::API.MYSQL_STMT) = stmt.ptr == C_NULL && error("prepared mysql statement has been closed")
2424

25+
DBInterface.getconnection(stmt::Statement) = stmt.conn
26+
2527
"""
2628
DBInterface.close!(stmt)
2729

0 commit comments

Comments
 (0)