mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Failling test for rowid optimization in Database.recordingSelectedRegion
This commit is contained in:
1 parent
dc146a431c
commit
9c864bc768
1 file changed
+9
@@ -33,6 +33,15 @@ class ValueObservationRegionRecordingTests: GRDBTestCase {
|
||||
XCTAssertEqual(region.description, "player(name)")
|
||||
}
|
||||
|
||||
do {
|
||||
// Test for rowID optimization
|
||||
struct Player: TableRecord, FetchableRecord, Decodable { }
|
||||
let (_, region) = try db.recordingSelectedRegion {
|
||||
_ = try Player.fetchOne(db, key: 123)
|
||||
}
|
||||
XCTAssertEqual(region.description, "player(id,name)[123]")
|
||||
}
|
||||
|
||||
do {
|
||||
let (_, region) = try db.recordingSelectedRegion {
|
||||
_ = try Row.fetchAll(db, sql: "SELECT * FROM team")
|
||||
|
||||
Reference in new issue
Block a user