@@ -5,7 +5,7 @@ using Dates: Date, DateTime, format, Time
55using Documenter: doctest
66using Query
77using QueryTables
8- using SQLite: DB, drop!, execute! , Stmt
8+ using SQLite: DB, drop!, execute, Stmt
99using Statistics: mean
1010using Test
1111
@@ -103,10 +103,13 @@ end
103103
104104@testset " Systematic tests" begin
105105
106- filename = joinpath (@__DIR__ , " test.sqlite" )
106+ filename = joinpath (@__DIR__ , " tmp" , " test.sqlite" )
107+ isfifo (filename) && rm (filename)
108+ cp (joinpath (@__DIR__ , " test.sqlite" ), filename)
109+
107110connection = DB (filename)
108- execute! (Stmt (connection, """ DROP TABLE IF EXISTS test""" ))
109- execute! (Stmt (connection, """
111+ execute (Stmt (connection, """ DROP TABLE IF EXISTS test""" ))
112+ execute (Stmt (connection, """
110113 CREATE TABLE test (
111114 zero Int,
112115 one Int,
@@ -123,7 +126,7 @@ execute!(Stmt(connection, """
123126 datetime_text Text,
124127 format Text
125128 )""" ))
126- execute! (Stmt (connection, """
129+ execute (Stmt (connection, """
127130 INSERT INTO test VALUES(0, 1, -1, "ab", NULL, 65, "a", "b", " a ", "_a_", "a%", 1.11, "2019-12-08T11:09:00", "%Y-%m-%d %H:%M:%S")
128131""" ))
129132small = Database (connection)
0 commit comments