You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class TasksContainer: Codable, PostgreSQLJSONType {
var id: String
var tasks: [String]
init(id: String, tasks: [String]) {
self.id = id
self.tasks = tasks
}
}
final class User: PostgreSQLStringModel {
...
var tasks: [TasksContainer]
...
}
On save I have this error "{"error":true,"reason":"ERROR: column "tasks" is of type jsonb but expression is of type jsonb[]"}"
json looks like below "tasks":[{"id":"04242018","tasks":["one","two"]},{"id":"04242018","tasks":["three","four"]}]
If i change type to jsonb[] i have this error {"error":true,"reason":"ERROR: unsupported jsonb version number 123"}
The text was updated successfully, but these errors were encountered:
On save I have this error "{"error":true,"reason":"ERROR: column "tasks" is of type jsonb but expression is of type jsonb[]"}"
json looks like below
"tasks":[{"id":"04242018","tasks":["one","two"]},{"id":"04242018","tasks":["three","four"]}]
If i change type to jsonb[] i have this error {"error":true,"reason":"ERROR: unsupported jsonb version number 123"}
The text was updated successfully, but these errors were encountered: