SyncEngine treats JSONB as TEXT instead of BLOB
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- sqlite, swift
- Ambito
- databases, distributed-systems
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Swift
- Stelle
- 1.9k
- Fork
- 157
- Merge medio
- 3m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pointfreeco/sqlite-data
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
pointfreeco/sqlite-data#563 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
pointfreeco/sqlite-data#557 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
pointfreeco/sqlite-data#551 ·
-
Child records deleted locally when their parent's save failed with `quotaExceeded`Forse già presa @jalalawqati l’ha presa 32 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
pointfreeco/sqlite-data#547 · 3 commenti · 1 reazione ·
-
CloudKit data loss after deleting then re-inserting record with the same UUIDForse già presa @jsutula l’ha presa 219 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
pointfreeco/sqlite-data#418 · 2 commenti ·
Tutte le issue di pointfreeco/sqlite-data
Issue simili
-
cmux-next: new workspaces show no name instead of workspace-NForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea: workspaces
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
manaflow-ai/cmux#21357 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
standing-desks/twine#172 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
open-spaced-repetition/awesome-fsrs#81 ·
I maintainer di solito rispondono entro 2 giorni