SyncEngine treats JSONB as TEXT instead of BLOB
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- sqlite, swift
- Lĩnh vực
- databases, distributed-systems
Hướng nghiên cứu
Start in SyncEngine.upsertFromServerRecord(_:force:db), where the issue reports the warning, and trace how JSONBRepresentation values are encoded when records are fetched from CloudKit. Check the JSONB column handling and relevant tests; done means the value is stored as a JSONB BLOB rather than TEXT and the reported SQLite error no longer occurs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
My CloudKit-synced schema has several JSONBRepresentation columns. When fetching the records from CloudKit, I get a purple warning saying:
Caught error: SQLite error 19: cannot store TEXT value in BLOB column notes.text - while executing `INSERT INTO "notes" ...
The warning is emitted from SyncEngine.upsertFromServerRecord(_:force:db).
Checklist
- I wrote this in my own words, and aimed to be as succinct as possible, even if I used AI to help research its content.
- I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- I have determined whether this bug is also reproducible in a vanilla GRDB project.
- If possible, I've reproduced the issue using the
mainbranch of this package. - This issue hasn't been addressed in an existing GitHub issue or discussion.
Expected behavior
The JSONB column is encoded to CKAsset and parsed as JSONB BLOB.
Actual behavior
No response
Reproducing project
No response
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
- Ngôn ngữ chính
- Swift
- Star
- 1.9k
- Fork
- 157
- Merge trung bình
- 3 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pointfreeco/sqlite-data
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
pointfreeco/sqlite-data#563 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
pointfreeco/sqlite-data#557 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
pointfreeco/sqlite-data#551 ·
-
Child records deleted locally when their parent's save failed with `quotaExceeded`Có thể đã có người làm @jalalawqati đã nhận 35 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
pointfreeco/sqlite-data#547 · 3 bình luận · 1 reaction ·
-
CloudKit data loss after deleting then re-inserting record with the same UUIDCó thể đã có người làm @jsutula đã nhận 221 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
pointfreeco/sqlite-data#418 · 2 bình luận ·
Tất cả issue của pointfreeco/sqlite-data
Issue tương tự
-
area: build-and-ci S3: minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
manaflow-ai/cmux#22595 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/kotlin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
cable-report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
darrylmorley/whatcable#656 ·
-
UI: "Block Music launches" toggle is dangerously easy to confuse with "Turn off Apple Music"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
omlahore/RemoveMacAI#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[开源推荐] Cove:给终端编程助手配上 Mac 原生工作台Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
521xueweihan/HelloGitHub#4049 ·