From 3d8c94b2c19763f23ec349923e928e84f5599e26 Mon Sep 17 00:00:00 2001 From: Charlie Vieth Date: Wed, 6 Nov 2024 22:44:36 -0500 Subject: [PATCH] WIP: failing test to get error code --- sqlite3_go18_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sqlite3_go18_test.go b/sqlite3_go18_test.go index 3ac1e754..a8fec90a 100644 --- a/sqlite3_go18_test.go +++ b/sqlite3_go18_test.go @@ -280,6 +280,11 @@ func TestQueryRowContextCancelInterrupt(t *testing.T) { } defer db.Close() + if _, err := db.Exec(`select unixepoch(datetime(100000, 'unixepoch', 'localtime'))`); err != nil { + e := err.(Error) + t.Fatalf("Error: %v - %#v", err, e) + } + const createTableStmt = ` CREATE TABLE timestamps ( ts TIMESTAMP NOT NULL