ITADN

Column ambiguity fixes regress SQLiteData functionality

#256Openhishnash 创建于 2026-01-18
bug
H
hishnashcommented
### Description The leatest changes to https://github.com/pointfreeco/swift-structured-queries/pull/254 are great however can no be used alongside SqliteDate, an error is thrown by the SyncEngine: ``` Caught error: SQLite error 1: no such column: descendantMetadatas.recordName - while executing `INSERT INTO "sqlitedata_icloud_metadata" ("recordPrimaryKey", "recordType", "zoneName", "ownerName", "parentRecordPrimaryKey", "parentRecordType", "lastKnownServerRecord", "_lastKnownServerRecordAllFields", "share", "_isDeleted", "userModificationTime") VALUES (?, ?, ?, ?, NULL, NULL, ?, ?, NULL, ?, ?) ON CONFLICT ("recordPrimaryKey", "recordType") DO UPDATE SET "zoneName" = ?, "ownerName" = ?`: SQLiteData CloudKit Failure ``` ### Checklist - [x] I have determined whether this bug is also reproducible in a vanilla SwiftUI project. - [x] I have determined whether this bug is also reproducible in a vanilla GRDB project. - [x] If possible, I've reproduced the issue using the `main` branch of this package. - [x] This issue hasn't been addressed in an [existing GitHub issue](https://github.com/pointfreeco/sqlite-data/issues) or [discussion](https://github.com/pointfreeco/sqlite-data/discussions). ### Expected behavior No error is thrown. ### Actual behavior ``` Caught error: SQLite error 1: no such column: descendantMetadatas.recordName - while executing `INSERT INTO "sqlitedata_icloud_metadata" ("recordPrimaryKey", "recordType", "zoneName", "ownerName", "parentRecordPrimaryKey", "parentRecordType", "lastKnownServerRecord", "_lastKnownServerRecordAllFields", "share", "_isDeleted", "userModificationTime") VALUES (?, ?, ?, ?, NULL, NULL, ?, ?, NULL, ?, ?) ON CONFLICT ("recordPrimaryKey", "recordType") DO UPDATE SET "zoneName" = ?, "ownerName" = ?`: SQLiteData CloudKit Failure ``` ### Reproducing project Create a project but override the `swift-structured-queries` to point to `main` ### SQLiteData version information _No response_ ### Sharing version information _No response_ ### GRDB version information _No response_ ### Destination operating system _No response_ ### Xcode version information _No response_ ### Swift Compiler version information ```shell ```
0 条评论