                 try! dbWriter.writeWithoutTransaction { db in
                     try db.inTransaction {
                         do {
-                            try db.execute(sql: "INSERT INTO t (a) VALUES (wait())")
+                            try db.execute(sql: "INSERT INTO t SELECT wait()")
                             XCTFail("Expected error")
                         } catch let error as DatabaseError {
                             XCTAssertEqual(error.resultCode, .SQLITE_INTERRUPT)

                do {
                    try dbWriter.write { db in
                        do {
                            try db.execute(sql: "INSERT INTO t (a) VALUES (wait())")
                            XCTFail("Expected error")
                        } catch let error as DatabaseError {
                            XCTAssertEqual(error.resultCode, .SQLITE_INTERRUPT)

            let block1 = {
                do {
                    try dbWriter.write { db in
                        try db.execute(sql: "INSERT INTO t SELECT wait()")
                    }
                    XCTFail("Expected error")
                } catch let error as DatabaseError {
                    // Transactions throw the first uncatched error: SQLITE_INTERRUPT
                    XCTAssertEqual(error.resultCode, .SQLITE_INTERRUPT)
                    XCTAssertEqual(error.message, "interrupted")
                    XCTAssertEqual(error.sql, "INSERT INTO t SELECT wait()")
                } catch {
                    XCTFail("Unexpected error: \(error)")
                }
