SyncEngine treats JSONB as TEXT instead of BLOB
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- sqlite, swift
- Área
- databases, distributed-systems
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Swift
- Estrellas
- 1.9k
- Forks
- 157
- Merge medio
- 3 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pointfreeco/sqlite-data
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pointfreeco/sqlite-data#563 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
pointfreeco/sqlite-data#557 · 2 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
pointfreeco/sqlite-data#551 ·
-
Child records deleted locally when their parent's save failed with `quotaExceeded`Posiblemente ocupada @jalalawqati la tomó hace 31 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
pointfreeco/sqlite-data#547 · 3 comentarios · 1 reacción ·
-
CloudKit data loss after deleting then re-inserting record with the same UUIDPosiblemente ocupada @jsutula la tomó hace 218 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
pointfreeco/sqlite-data#418 · 2 comentarios ·
Todos los issues de pointfreeco/sqlite-data
Issues similares
-
agent/quality help wanted origin/quality quality stage/010-actionable testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hivecommons/hotshot#227 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cucumberswift/CucumberSwift#437 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Ace: adopt desktopToolRules()Abiertoace documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
githubnext/desktop-tools#104 ·
Los mantenedores suelen responder en 1 día
-
Bug MapKit SwiftUI
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
vdhamer/Photo-Club-Hub#885 · 1 comentario ·