mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Issue #61: failing test for Database.isInsideTransaction after a SAVEPOINT statement
This commit is contained in:
1 parent
5453aec1d0
commit
34dad07393
1 file changed
+1
@@ -58,6 +58,7 @@ class TransactionObserverSavepointsTests: GRDBTestCase {
|
||||
try db.execute("CREATE TABLE items1 (id INTEGER PRIMARY KEY)")
|
||||
try db.execute("CREATE TABLE items2 (id INTEGER PRIMARY KEY)")
|
||||
try db.execute("SAVEPOINT sp1")
|
||||
XCTAssertTrue(db.isInsideTransaction)
|
||||
try db.execute("INSERT INTO items1 (id) VALUES (NULL)")
|
||||
XCTAssertEqual(observer.events.count, 0)
|
||||
try db.execute("INSERT INTO items2 (id) VALUES (NULL)")
|
||||
|
||||
Reference in new issue
Block a user